1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00
phorge-phorge/resources/sql/patches/20130920.repokeyspolicy.sql

21 lines
649 B
MySQL
Raw Normal View History

ALTER TABLE {$NAMESPACE}_repository.repository_summary
ADD KEY `key_epoch` (epoch);
ALTER TABLE {$NAMESPACE}_repository.repository
ADD KEY `key_name` (name);
ALTER TABLE {$NAMESPACE}_repository.repository
ADD KEY `key_vcs` (versionControlSystem);
ALTER TABLE {$NAMESPACE}_repository.repository
ADD viewPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin;
ALTER TABLE {$NAMESPACE}_repository.repository
ADD editPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin;
UPDATE {$NAMESPACE}_repository.repository
SET viewPolicy = 'users' WHERE viewPolicy = '';
UPDATE {$NAMESPACE}_repository.repository
SET editPolicy = 'admin' WHERE editPolicy = '';