mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-05 05:02:44 +01:00
6b7d7401ca
Summary: Ref T4558. This diff modernizes the #diviner application. Basically: - Add an edit controller, accessible at `/book/$BOOK/edit/`. - Add edit/view policies. - Added an action menu to the `DivinerBookController` to expose the edit interface. - Allows projects to be associated with books. - Implement edges and transactions. - Implemented `PhabricatorApplicationTransactionInterface` in `DivinerLiveBook`. Test Plan: - Generated a Diviner book with `./bin/diviner generate`. - Added projects to a book and ensured that they persisted. - Changed the view policy on a book and made sure it was effective. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T4558 Differential Revision: https://secure.phabricator.com/D13091
6 lines
213 B
SQL
6 lines
213 B
SQL
ALTER TABLE {$NAMESPACE}_diviner.diviner_livebook
|
|
ADD COLUMN editPolicy VARBINARY(64) NOT NULL AFTER viewPolicy;
|
|
|
|
UPDATE {$NAMESPACE}_diviner.diviner_livebook
|
|
SET editPolicy = 'admin'
|
|
WHERE editPolicy = '';
|