mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
98bf001a58
Summary: Ref T603. Principally, I want to implement the rule "when you upload a file to an object, users must be able to see the object in order to see the file", since I think this is strongly in line with user expectation. For example, if you attach a file to a Conpherence, it should only be visible to members of that thread. This adds storage for policies, but doesn't do anything interesting with it yet. Test Plan: Ran `bin/storage upgrade`. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T603 Differential Revision: https://secure.phabricator.com/D7175
5 lines
172 B
SQL
5 lines
172 B
SQL
ALTER TABLE {$NAMESPACE}_file.file
|
|
ADD viewPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin;
|
|
|
|
UPDATE {$NAMESPACE}_file.file
|
|
SET viewPolicy = 'users' WHERE viewPolicy = '';
|