1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00
phorge-phorge/resources/sql/autopatches/20150617.harbor.1.lint.sql
epriestley 7ad4c9c056 Replace Harbormaster "BuildItem" with Lint/Unit messages
Summary:
Ref T8095.

Harbormaster has a `BuildItem` class, but it has no table and is unused. This was an earlier idea about representing lint/unit results and some other possible types of messages, but I think we want to be more specific than this.

Remove `BuildItem` and add `Lint` and `Unit` storage. These tables roughly parallel how we store lint/unit messages today, with some guesses about how where they'll go in the future.

Test Plan: Ran `bin/storage upgrade` and got a clean adjust out of it.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: hach-que, epriestley

Maniphest Tasks: T8095

Differential Revision: https://secure.phabricator.com/D13329
2015-06-21 09:00:00 -07:00

14 lines
621 B
SQL

CREATE TABLE {$NAMESPACE}_harbormaster.harbormaster_buildlintmessage (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
buildTargetPHID VARBINARY(64) NOT NULL,
path LONGTEXT NOT NULL,
line INT UNSIGNED,
characterOffset INT UNSIGNED,
code VARCHAR(32) COLLATE {$COLLATE_TEXT} NOT NULL,
severity VARCHAR(32) COLLATE {$COLLATE_TEXT} NOT NULL,
name VARCHAR(255) COLLATE {$COLLATE_TEXT} NOT NULL,
properties LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL,
dateCreated INT UNSIGNED NOT NULL,
dateModified INT UNSIGNED NOT NULL,
KEY `key_target` (buildTargetPHID)
) ENGINE=INNODB, COLLATE {$COLLATE_TEXT};