@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add missing "oauth_server_edge" tables

Summary: Fixes T10975. The "scramble attached file permissions when an object is saved" code is misfiring here too. See T10778 + D15803 for prior work.

Test Plan:
- Ran `bin/storage upgrade -f`.
- Edited the view policy of an OAuth server (prepatch: fatal; postpatch: worked great).

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10975

Differential Revision: https://secure.phabricator.com/D15938

+28
+16
resources/sql/autopatches/20160517.oauth.01.edge.sql
··· 1 + CREATE TABLE {$NAMESPACE}_oauth_server.edge ( 2 + src VARBINARY(64) NOT NULL, 3 + type INT UNSIGNED NOT NULL, 4 + dst VARBINARY(64) NOT NULL, 5 + dateCreated INT UNSIGNED NOT NULL, 6 + seq INT UNSIGNED NOT NULL, 7 + dataID INT UNSIGNED, 8 + PRIMARY KEY (src, type, dst), 9 + KEY `src` (src, type, dateCreated, seq), 10 + UNIQUE KEY `key_dst` (dst, type, src) 11 + ) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT}; 12 + 13 + CREATE TABLE {$NAMESPACE}_oauth_server.edgedata ( 14 + id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, 15 + data LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT} 16 + ) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
+2
src/__phutil_library_map__.php
··· 2783 2783 'PhabricatorOAuthServerDAO' => 'applications/oauthserver/storage/PhabricatorOAuthServerDAO.php', 2784 2784 'PhabricatorOAuthServerEditEngine' => 'applications/oauthserver/editor/PhabricatorOAuthServerEditEngine.php', 2785 2785 'PhabricatorOAuthServerEditor' => 'applications/oauthserver/editor/PhabricatorOAuthServerEditor.php', 2786 + 'PhabricatorOAuthServerSchemaSpec' => 'applications/oauthserver/query/PhabricatorOAuthServerSchemaSpec.php', 2786 2787 'PhabricatorOAuthServerScope' => 'applications/oauthserver/PhabricatorOAuthServerScope.php', 2787 2788 'PhabricatorOAuthServerTestCase' => 'applications/oauthserver/__tests__/PhabricatorOAuthServerTestCase.php', 2788 2789 'PhabricatorOAuthServerTokenController' => 'applications/oauthserver/controller/PhabricatorOAuthServerTokenController.php', ··· 7352 7353 'PhabricatorOAuthServerDAO' => 'PhabricatorLiskDAO', 7353 7354 'PhabricatorOAuthServerEditEngine' => 'PhabricatorEditEngine', 7354 7355 'PhabricatorOAuthServerEditor' => 'PhabricatorApplicationTransactionEditor', 7356 + 'PhabricatorOAuthServerSchemaSpec' => 'PhabricatorConfigSchemaSpec', 7355 7357 'PhabricatorOAuthServerScope' => 'Phobject', 7356 7358 'PhabricatorOAuthServerTestCase' => 'PhabricatorTestCase', 7357 7359 'PhabricatorOAuthServerTokenController' => 'PhabricatorOAuthServerController',
+10
src/applications/oauthserver/query/PhabricatorOAuthServerSchemaSpec.php
··· 1 + <?php 2 + 3 + final class PhabricatorOAuthServerSchemaSpec 4 + extends PhabricatorConfigSchemaSpec { 5 + 6 + public function buildSchemata() { 7 + $this->buildEdgeSchemata(new PhabricatorOAuthServerClient()); 8 + } 9 + 10 + }