@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

Generate expected schemata for Releeph

Summary:
Ref T1191.

- This drops two tables.
- Both tables were migrated to transactions a very long time ago and no longer have readers or writers.

Test Plan: Saw ~150 fewer warnings.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T1191

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

+80
+1
resources/sql/autopatches/20140926.schema.01.droprelev.sql
··· 1 + DROP TABLE {$NAMESPACE}_releeph.releeph_event;
+1
resources/sql/autopatches/20140926.schema.02.droprelreqev.sql
··· 1 + DROP TABLE {$NAMESPACE}_releeph.releeph_requestevent;
+2
src/__phutil_library_map__.php
··· 2802 2802 'ReleephRequestViewController' => 'applications/releeph/controller/request/ReleephRequestViewController.php', 2803 2803 'ReleephRequestorFieldSpecification' => 'applications/releeph/field/specification/ReleephRequestorFieldSpecification.php', 2804 2804 'ReleephRevisionFieldSpecification' => 'applications/releeph/field/specification/ReleephRevisionFieldSpecification.php', 2805 + 'ReleephSchemaSpec' => 'applications/releeph/storage/ReleephSchemaSpec.php', 2805 2806 'ReleephSeverityFieldSpecification' => 'applications/releeph/field/specification/ReleephSeverityFieldSpecification.php', 2806 2807 'ReleephSummaryFieldSpecification' => 'applications/releeph/field/specification/ReleephSummaryFieldSpecification.php', 2807 2808 'ReleephWorkCanPushConduitAPIMethod' => 'applications/releeph/conduit/work/ReleephWorkCanPushConduitAPIMethod.php', ··· 5894 5895 'ReleephRequestViewController' => 'ReleephBranchController', 5895 5896 'ReleephRequestorFieldSpecification' => 'ReleephFieldSpecification', 5896 5897 'ReleephRevisionFieldSpecification' => 'ReleephFieldSpecification', 5898 + 'ReleephSchemaSpec' => 'PhabricatorConfigSchemaSpec', 5897 5899 'ReleephSeverityFieldSpecification' => 'ReleephLevelFieldSpecification', 5898 5900 'ReleephSummaryFieldSpecification' => 'ReleephFieldSpecification', 5899 5901 'ReleephWorkCanPushConduitAPIMethod' => 'ReleephConduitAPIMethod',
+20
src/applications/releeph/storage/ReleephBranch.php
··· 29 29 self::CONFIG_SERIALIZATION => array( 30 30 'details' => self::SERIALIZATION_JSON, 31 31 ), 32 + self::CONFIG_COLUMN_SCHEMA => array( 33 + 'basename' => 'text64', 34 + 'isActive' => 'bool', 35 + 'symbolicName' => 'text64?', 36 + 'name' => 'text128', 37 + ), 38 + self::CONFIG_KEY_SCHEMA => array( 39 + 'releephProjectID' => array( 40 + 'columns' => array('releephProjectID', 'symbolicName'), 41 + 'unique' => true, 42 + ), 43 + 'releephProjectID_2' => array( 44 + 'columns' => array('releephProjectID', 'basename'), 45 + 'unique' => true, 46 + ), 47 + 'releephProjectID_name' => array( 48 + 'columns' => array('releephProjectID', 'name'), 49 + 'unique' => true, 50 + ), 51 + ), 32 52 ) + parent::getConfiguration(); 33 53 } 34 54
+11
src/applications/releeph/storage/ReleephProject.php
··· 29 29 self::CONFIG_SERIALIZATION => array( 30 30 'details' => self::SERIALIZATION_JSON, 31 31 ), 32 + self::CONFIG_COLUMN_SCHEMA => array( 33 + 'name' => 'text255', 34 + 'trunkBranch' => 'text255', 35 + 'isActive' => 'bool', 36 + ), 37 + self::CONFIG_KEY_SCHEMA => array( 38 + 'projectName' => array( 39 + 'columns' => array('name'), 40 + 'unique' => true, 41 + ), 42 + ), 32 43 ) + parent::getConfiguration(); 33 44 } 34 45
+25
src/applications/releeph/storage/ReleephRequest.php
··· 153 153 'details' => self::SERIALIZATION_JSON, 154 154 'userIntents' => self::SERIALIZATION_JSON, 155 155 ), 156 + self::CONFIG_COLUMN_SCHEMA => array( 157 + 'summary' => 'text', 158 + 'requstCommitPHID' => 'phid?', 159 + 'commitIdentifier' => 'text40', 160 + 'pickStatus' => 'uint32', 161 + 'inBranch' => 'bool', 162 + 'mailKey' => 'bytes20', 163 + ), 164 + self::CONFIG_KEY_SCHEMA => array( 165 + 'key_phid' => null, 166 + 'phid' => array( 167 + 'columns' => array('phid'), 168 + 'unique' => true, 169 + ), 170 + 'requestIdentifierBranch' => array( 171 + 'columns' => array('requestCommitPHID', 'branchID'), 172 + 'unique' => true, 173 + ), 174 + 'branchID' => array( 175 + 'columns' => array('branchID'), 176 + ), 177 + 'key_requestedObject' => array( 178 + 'columns' => array('requestedObjectPHID'), 179 + ), 180 + ), 156 181 ) + parent::getConfiguration(); 157 182 } 158 183
+20
src/applications/releeph/storage/ReleephSchemaSpec.php
··· 1 + <?php 2 + 3 + final class ReleephSchemaSpec 4 + extends PhabricatorConfigSchemaSpec { 5 + 6 + public function buildSchemata() { 7 + $this->buildLiskSchemata('ReleephDAO'); 8 + 9 + $this->buildTransactionSchema( 10 + new ReleephProductTransaction()); 11 + 12 + $this->buildTransactionSchema( 13 + new ReleephBranchTransaction()); 14 + 15 + $this->buildTransactionSchema( 16 + new ReleephRequestTransaction(), 17 + new ReleephRequestTransactionComment()); 18 + } 19 + 20 + }