1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-29 08:50:58 +01:00
phorge-phorge/resources/sql/patches/070.differentialaux.sql
epriestley dd74903cae Add basic auxiliary field storage for Differential
Summary:
Precursor to building this out to solve T343. This is similar to the Maniphest
fields we landed recently, although I think they're dissimilar enough that it
isn't worth going crazy trying to make them share code, at least for now.

This doesn't really do anything yet, just adds a storage object and a couple of
selector/field indirection classes.

Test Plan: Ran SQL upgrade script, created an aux field.
Reviewed By: jungejason
Reviewers: jungejason, tuomaspelkonen, aran
CC: aran, jungejason
Differential Revision: 798
2011-08-14 10:04:21 -07:00

10 lines
383 B
SQL

CREATE TABLE phabricator_differential.differential_auxiliaryfield (
id INT UNSIGNED NOT NULL auto_increment PRIMARY KEY,
revisionPHID varchar(64) BINARY NOT NULL,
name VARCHAR(32) BINARY NOT NULL,
value LONGBLOB NOT NULL,
UNIQUE KEY (revisionPHID, name),
KEY (name, value(64)),
dateCreated INT UNSIGNED NOT NULL,
dateModified INT UNSIGNED NOT NULL
) ENGINE = InnoDB;