@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.

Generate expected Project schemata

Summary:
Ref T1191. Notes:

- Drops the project affiliation table. This is a very old membership table which was migrated to edges.
- Drops the subproject table. This is a very old table for a removed feature.

Test Plan:
- Grepped for dropped tables.
- Saw ~100 fewer setup issues.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T1191

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

+142
+1
resources/sql/autopatches/20140926.schema.05.dropprojaffil.sql
··· 1 + DROP TABLE {$NAMESPACE}_project.project_affiliation;
+1
resources/sql/autopatches/20140926.schema.06.dropsubproject.sql
··· 1 + DROP TABLE {$NAMESPACE}_project.project_subproject;
+2
src/__phutil_library_map__.php
··· 2052 2052 'PhabricatorProjectProjectHasObjectEdgeType' => 'applications/project/edge/PhabricatorProjectProjectHasObjectEdgeType.php', 2053 2053 'PhabricatorProjectProjectPHIDType' => 'applications/project/phid/PhabricatorProjectProjectPHIDType.php', 2054 2054 'PhabricatorProjectQuery' => 'applications/project/query/PhabricatorProjectQuery.php', 2055 + 'PhabricatorProjectSchemaSpec' => 'applications/project/storage/PhabricatorProjectSchemaSpec.php', 2055 2056 'PhabricatorProjectSearchEngine' => 'applications/project/query/PhabricatorProjectSearchEngine.php', 2056 2057 'PhabricatorProjectSearchIndexer' => 'applications/project/search/PhabricatorProjectSearchIndexer.php', 2057 2058 'PhabricatorProjectSlug' => 'applications/project/storage/PhabricatorProjectSlug.php', ··· 5018 5019 'PhabricatorProjectProjectHasObjectEdgeType' => 'PhabricatorEdgeType', 5019 5020 'PhabricatorProjectProjectPHIDType' => 'PhabricatorPHIDType', 5020 5021 'PhabricatorProjectQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 5022 + 'PhabricatorProjectSchemaSpec' => 'PhabricatorConfigSchemaSpec', 5021 5023 'PhabricatorProjectSearchEngine' => 'PhabricatorApplicationSearchEngine', 5022 5024 'PhabricatorProjectSearchIndexer' => 'PhabricatorSearchDocumentIndexer', 5023 5025 'PhabricatorProjectSlug' => 'PhabricatorProjectDAO',
+1
src/applications/config/schema/PhabricatorConfigSchemaSpec.php
··· 170 170 array( 171 171 'PRIMARY' => array( 172 172 'columns' => array('counterName'), 173 + 'unique' => true, 173 174 ), 174 175 )); 175 176 }
+13
src/applications/maniphest/storage/ManiphestTaskSubscriber.php
··· 9 9 return array( 10 10 self::CONFIG_IDS => self::IDS_MANUAL, 11 11 self::CONFIG_TIMESTAMPS => false, 12 + self::CONFIG_COLUMN_SCHEMA => array( 13 + 'id' => null, 14 + ), 15 + self::CONFIG_KEY_SCHEMA => array( 16 + 'PRIMARY' => array( 17 + 'columns' => array('subscriberPHID', 'taskPHID'), 18 + 'unique' => true, 19 + ), 20 + 'taskPHID' => array( 21 + 'columns' => array('taskPHID', 'subscriberPHID'), 22 + 'unique' => true, 23 + ), 24 + ), 12 25 ); 13 26 } 14 27
+31
src/applications/project/storage/PhabricatorProject.php
··· 121 121 self::CONFIG_SERIALIZATION => array( 122 122 'subprojectPHIDs' => self::SERIALIZATION_JSON, 123 123 ), 124 + self::CONFIG_COLUMN_SCHEMA => array( 125 + 'name' => 'text255', 126 + 'status' => 'text32', 127 + 'phrictionSlug' => 'text128?', 128 + 'joinPolicy' => 'policy', 129 + 'isMembershipLocked' => 'bool', 130 + 'profileImagePHID' => 'phid?', 131 + 'icon' => 'text32', 132 + 'color' => 'text32', 133 + ), 134 + self::CONFIG_KEY_SCHEMA => array( 135 + 'key_phid' => null, 136 + 'phid' => array( 137 + 'columns' => array('phid'), 138 + 'unique' => true, 139 + ), 140 + 'key_icon' => array( 141 + 'columns' => array('icon'), 142 + ), 143 + 'key_color' => array( 144 + 'columns' => array('color'), 145 + ), 146 + 'phrictionSlug' => array( 147 + 'columns' => array('phrictionSlug'), 148 + 'unique' => true, 149 + ), 150 + 'name' => array( 151 + 'columns' => array('name'), 152 + 'unique' => true, 153 + ), 154 + ), 124 155 ) + parent::getConfiguration(); 125 156 } 126 157
+13
src/applications/project/storage/PhabricatorProjectColumn.php
··· 33 33 self::CONFIG_SERIALIZATION => array( 34 34 'properties' => self::SERIALIZATION_JSON, 35 35 ), 36 + self::CONFIG_COLUMN_SCHEMA => array( 37 + 'name' => 'text255', 38 + 'status' => 'uint32', 39 + 'sequence' => 'uint32', 40 + ), 41 + self::CONFIG_KEY_SCHEMA => array( 42 + 'key_status' => array( 43 + 'columns' => array('projectPHID', 'status', 'sequence'), 44 + ), 45 + 'key_sequence' => array( 46 + 'columns' => array('projectPHID', 'sequence'), 47 + ), 48 + ), 36 49 ) + parent::getConfiguration(); 37 50 } 38 51
+15
src/applications/project/storage/PhabricatorProjectColumnPosition.php
··· 13 13 public function getConfiguration() { 14 14 return array( 15 15 self::CONFIG_TIMESTAMPS => false, 16 + self::CONFIG_COLUMN_SCHEMA => array( 17 + 'sequence' => 'uint32', 18 + ), 19 + self::CONFIG_KEY_SCHEMA => array( 20 + 'boardPHID' => array( 21 + 'columns' => array('boardPHID', 'columnPHID', 'objectPHID'), 22 + 'unique' => true, 23 + ), 24 + 'objectPHID' => array( 25 + 'columns' => array('objectPHID', 'boardPHID'), 26 + ), 27 + 'boardPHID_2' => array( 28 + 'columns' => array('boardPHID', 'columnPHID', 'sequence'), 29 + ), 30 + ), 16 31 ) + parent::getConfiguration(); 17 32 } 18 33
+48
src/applications/project/storage/PhabricatorProjectSchemaSpec.php
··· 1 + <?php 2 + 3 + final class PhabricatorProjectSchemaSpec extends PhabricatorConfigSchemaSpec { 4 + 5 + public function buildSchemata() { 6 + $this->buildLiskSchemata('PhabricatorProjectDAO'); 7 + 8 + $this->buildEdgeSchemata(new PhabricatorProject()); 9 + 10 + $this->buildTransactionSchema( 11 + new PhabricatorProjectTransaction()); 12 + 13 + $this->buildCustomFieldSchemata( 14 + new PhabricatorProjectCustomFieldStorage(), 15 + array( 16 + new PhabricatorProjectCustomFieldNumericIndex(), 17 + new PhabricatorProjectCustomFieldStringIndex(), 18 + )); 19 + 20 + $this->buildTransactionSchema( 21 + new PhabricatorProjectColumnTransaction()); 22 + 23 + $this->buildRawSchema( 24 + id(new PhabricatorProject())->getApplicationName(), 25 + PhabricatorProject::TABLE_DATASOURCE_TOKEN, 26 + array( 27 + 'id' => 'id', 28 + 'projectID' => 'id', 29 + 'token' => 'text128', 30 + ), 31 + array( 32 + 'PRIMARY' => array( 33 + 'columns' => array('id'), 34 + 'unique' => true, 35 + ), 36 + 'token' => array( 37 + 'columns' => array('token', 'projectID'), 38 + 'unique' => true, 39 + ), 40 + 'projectID' => array( 41 + 'columns' => array('projectID'), 42 + ), 43 + )); 44 + 45 + 46 + } 47 + 48 + }
+17
src/applications/project/storage/PhabricatorProjectSlug.php
··· 5 5 protected $slug; 6 6 protected $projectPHID; 7 7 8 + public function getConfiguration() { 9 + return array( 10 + self::CONFIG_COLUMN_SCHEMA => array( 11 + 'slug' => 'text128', 12 + ), 13 + self::CONFIG_KEY_SCHEMA => array( 14 + 'key_slug' => array( 15 + 'columns' => array('slug'), 16 + 'unique' => true, 17 + ), 18 + 'key_projectPHID' => array( 19 + 'columns' => array('projectPHID'), 20 + ), 21 + ), 22 + ) + parent::getConfiguration(); 23 + } 24 + 8 25 }