1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 02:32:42 +01:00
phorge-phorge/resources/sql/patches/20130920.repokeyspolicy.sql
epriestley b8cb6ddaa5 Add some keys and policy fields to repositories
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
2013-09-21 16:23:01 -07:00

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 = '';