Add global "push" policy to Repositories

Summary: No editing or view yet, just adds the schema and a policy default. Part of D7391.

Test Plan: `bin/storage upgrade`

Reviewers: hach-que, btrahan

Reviewed By: hach-que

CC: aran

Maniphest Tasks: T2230

Differential Revision: https://secure.phabricator.com/D7415
This commit is contained in:
epriestley
2013-10-25 19:12:52 -07:00
parent ba63c5e426
commit 86fe020a97
6 changed files with 56 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
ALTER TABLE {$NAMESPACE}_repository.repository
ADD COLUMN pushPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin;
UPDATE {$NAMESPACE}_repository.repository
SET pushPolicy = 'users' WHERE pushPolicy = '';