mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
b8cb6ddaa5
Summary: - Add some TODO'd keys. - Add policy fields. Test Plan: Viewed repositories; created a new repository and verified it got the right default policy settings. Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D7056
20 lines
649 B
SQL
20 lines
649 B
SQL
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 = '';
|