1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 23:32:40 +01:00
phorge-phorge/resources/sql/patches/20130925.xpolicy.sql

18 lines
646 B
MySQL
Raw Normal View History

ALTER TABLE {$NAMESPACE}_differential.differential_revision
ADD viewPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin;
ALTER TABLE {$NAMESPACE}_differential.differential_revision
ADD editPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin;
UPDATE {$NAMESPACE}_differential.differential_revision
SET viewPolicy = 'users' WHERE viewPolicy = '';
UPDATE {$NAMESPACE}_differential.differential_revision
SET editPolicy = 'users' WHERE editPolicy = '';
ALTER TABLE {$NAMESPACE}_differential.differential_revision
ADD repositoryPHID VARCHAR(64) COLLATE utf8_bin;
ALTER TABLE {$NAMESPACE}_differential.differential_revision
ADD KEY (repositoryPHID);