1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 08:12:40 +01:00
phorge-phorge/resources/sql/autopatches/20151013.drydock.op.1.sql

17 lines
722 B
MySQL
Raw Normal View History

CREATE TABLE {$NAMESPACE}_drydock.drydock_repositoryoperation (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
phid VARBINARY(64) NOT NULL,
authorPHID VARBINARY(64) NOT NULL,
objectPHID VARBINARY(64) NOT NULL,
repositoryPHID VARBINARY(64) NOT NULL,
repositoryTarget LONGBLOB NOT NULL,
operationType VARCHAR(32) NOT NULL COLLATE {$COLLATE_TEXT},
operationState VARCHAR(32) NOT NULL COLLATE {$COLLATE_TEXT},
properties LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT},
dateCreated INT UNSIGNED NOT NULL,
dateModified INT UNSIGNED NOT NULL,
UNIQUE KEY `key_phid` (phid),
KEY `key_object` (objectPHID),
KEY `key_repository` (repositoryPHID, operationState)
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};