@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 scheamta for Passphrase, Paste, Phlux, Phame

Summary: Ref T1191. Nothing notable in these.

Test Plan: Viewed web UI.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T1191

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

+160
+8
src/__phutil_library_map__.php
··· 1105 1105 'PassphraseQueryConduitAPIMethod' => 'applications/passphrase/conduit/PassphraseQueryConduitAPIMethod.php', 1106 1106 'PassphraseRemarkupRule' => 'applications/passphrase/remarkup/PassphraseRemarkupRule.php', 1107 1107 'PassphraseSSHKey' => 'applications/passphrase/keys/PassphraseSSHKey.php', 1108 + 'PassphraseSchemaSpec' => 'applications/passphrase/storage/PassphraseSchemaSpec.php', 1108 1109 'PassphraseSecret' => 'applications/passphrase/storage/PassphraseSecret.php', 1109 1110 'PasteConduitAPIMethod' => 'applications/paste/conduit/PasteConduitAPIMethod.php', 1110 1111 'PasteCreateConduitAPIMethod' => 'applications/paste/conduit/PasteCreateConduitAPIMethod.php', ··· 1920 1921 'PhabricatorPastePastePHIDType' => 'applications/paste/phid/PhabricatorPastePastePHIDType.php', 1921 1922 'PhabricatorPasteQuery' => 'applications/paste/query/PhabricatorPasteQuery.php', 1922 1923 'PhabricatorPasteRemarkupRule' => 'applications/paste/remarkup/PhabricatorPasteRemarkupRule.php', 1924 + 'PhabricatorPasteSchemaSpec' => 'applications/paste/storage/PhabricatorPasteSchemaSpec.php', 1923 1925 'PhabricatorPasteSearchEngine' => 'applications/paste/query/PhabricatorPasteSearchEngine.php', 1924 1926 'PhabricatorPasteTestDataGenerator' => 'applications/paste/lipsum/PhabricatorPasteTestDataGenerator.php', 1925 1927 'PhabricatorPasteTransaction' => 'applications/paste/storage/PhabricatorPasteTransaction.php', ··· 2493 2495 'PhameQueryConduitAPIMethod' => 'applications/phame/conduit/PhameQueryConduitAPIMethod.php', 2494 2496 'PhameQueryPostsConduitAPIMethod' => 'applications/phame/conduit/PhameQueryPostsConduitAPIMethod.php', 2495 2497 'PhameResourceController' => 'applications/phame/controller/PhameResourceController.php', 2498 + 'PhameSchemaSpec' => 'applications/phame/storage/PhameSchemaSpec.php', 2496 2499 'PhameSkinSpecification' => 'applications/phame/skins/PhameSkinSpecification.php', 2497 2500 'PhluxController' => 'applications/phlux/controller/PhluxController.php', 2498 2501 'PhluxDAO' => 'applications/phlux/storage/PhluxDAO.php', 2499 2502 'PhluxEditController' => 'applications/phlux/controller/PhluxEditController.php', 2500 2503 'PhluxListController' => 'applications/phlux/controller/PhluxListController.php', 2504 + 'PhluxSchemaSpec' => 'applications/phlux/storage/PhluxSchemaSpec.php', 2501 2505 'PhluxTransaction' => 'applications/phlux/storage/PhluxTransaction.php', 2502 2506 'PhluxTransactionQuery' => 'applications/phlux/query/PhluxTransactionQuery.php', 2503 2507 'PhluxVariable' => 'applications/phlux/storage/PhluxVariable.php', ··· 4015 4019 'PassphraseQueryConduitAPIMethod' => 'PassphraseConduitAPIMethod', 4016 4020 'PassphraseRemarkupRule' => 'PhabricatorObjectRemarkupRule', 4017 4021 'PassphraseSSHKey' => 'PassphraseAbstractKey', 4022 + 'PassphraseSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4018 4023 'PassphraseSecret' => 'PassphraseDAO', 4019 4024 'PasteConduitAPIMethod' => 'ConduitAPIMethod', 4020 4025 'PasteCreateConduitAPIMethod' => 'PasteConduitAPIMethod', ··· 4861 4866 'PhabricatorPastePastePHIDType' => 'PhabricatorPHIDType', 4862 4867 'PhabricatorPasteQuery' => 'PhabricatorCursorPagedPolicyAwareQuery', 4863 4868 'PhabricatorPasteRemarkupRule' => 'PhabricatorObjectRemarkupRule', 4869 + 'PhabricatorPasteSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4864 4870 'PhabricatorPasteSearchEngine' => 'PhabricatorApplicationSearchEngine', 4865 4871 'PhabricatorPasteTestDataGenerator' => 'PhabricatorTestDataGenerator', 4866 4872 'PhabricatorPasteTransaction' => 'PhabricatorApplicationTransaction', ··· 5490 5496 'PhameQueryConduitAPIMethod' => 'PhameConduitAPIMethod', 5491 5497 'PhameQueryPostsConduitAPIMethod' => 'PhameConduitAPIMethod', 5492 5498 'PhameResourceController' => 'CelerityResourceController', 5499 + 'PhameSchemaSpec' => 'PhabricatorConfigSchemaSpec', 5493 5500 'PhluxController' => 'PhabricatorController', 5494 5501 'PhluxDAO' => 'PhabricatorLiskDAO', 5495 5502 'PhluxEditController' => 'PhluxController', 5496 5503 'PhluxListController' => 'PhluxController', 5504 + 'PhluxSchemaSpec' => 'PhabricatorConfigSchemaSpec', 5497 5505 'PhluxTransaction' => 'PhabricatorApplicationTransaction', 5498 5506 'PhluxTransactionQuery' => 'PhabricatorApplicationTransactionQuery', 5499 5507 'PhluxVariable' => array(
+23
src/applications/passphrase/storage/PassphraseCredential.php
··· 35 35 public function getConfiguration() { 36 36 return array( 37 37 self::CONFIG_AUX_PHID => true, 38 + self::CONFIG_COLUMN_SCHEMA => array( 39 + 'name' => 'text255', 40 + 'credentialType' => 'text64', 41 + 'providesType' => 'text64', 42 + 'description' => 'text', 43 + 'username' => 'text255', 44 + 'secretID' => 'id?', 45 + 'isDestroyed' => 'bool', 46 + 'isLocked' => 'bool', 47 + 'allowConduit' => 'bool', 48 + ), 49 + self::CONFIG_KEY_SCHEMA => array( 50 + 'key_secret' => array( 51 + 'columns' => array('secretID'), 52 + 'unique' => true, 53 + ), 54 + 'key_type' => array( 55 + 'columns' => array('credentialType'), 56 + ), 57 + 'key_provides' => array( 58 + 'columns' => array('providesType'), 59 + ), 60 + ), 38 61 ) + parent::getConfiguration(); 39 62 } 40 63
+15
src/applications/passphrase/storage/PassphraseSchemaSpec.php
··· 1 + <?php 2 + 3 + final class PassphraseSchemaSpec 4 + extends PhabricatorConfigSchemaSpec { 5 + 6 + public function buildSchemata() { 7 + $this->buildLiskSchemata('PassphraseDAO'); 8 + 9 + $this->buildTransactionSchema( 10 + new PassphraseCredentialTransaction()); 11 + 12 + $this->buildEdgeSchemata(new PassphraseCredential()); 13 + } 14 + 15 + }
+20
src/applications/paste/storage/PhabricatorPaste.php
··· 41 41 public function getConfiguration() { 42 42 return array( 43 43 self::CONFIG_AUX_PHID => true, 44 + self::CONFIG_COLUMN_SCHEMA => array( 45 + 'title' => 'text255', 46 + 'language' => 'text64', 47 + 'mailKey' => 'bytes20', 48 + 'parentPHID' => 'phid?', 49 + ), 50 + self::CONFIG_KEY_SCHEMA => array( 51 + 'parentPHID' => array( 52 + 'columns' => array('parentPHID'), 53 + ), 54 + 'authorPHID' => array( 55 + 'columns' => array('authorPHID'), 56 + ), 57 + 'key_dateCreated' => array( 58 + 'columns' => array('dateCreated'), 59 + ), 60 + 'key_language' => array( 61 + 'columns' => array('language'), 62 + ), 63 + ), 44 64 ) + parent::getConfiguration(); 45 65 } 46 66
+16
src/applications/paste/storage/PhabricatorPasteSchemaSpec.php
··· 1 + <?php 2 + 3 + final class PhabricatorPasteSchemaSpec 4 + extends PhabricatorConfigSchemaSpec { 5 + 6 + public function buildSchemata() { 7 + $this->buildLiskSchemata('PhabricatorPasteDAO'); 8 + 9 + $this->buildTransactionSchema( 10 + new PhabricatorPasteTransaction(), 11 + new PhabricatorPasteTransactionComment()); 12 + 13 + $this->buildEdgeSchemata(new PhabricatorPaste()); 14 + } 15 + 16 + }
+9
src/applications/paste/storage/PhabricatorPasteTransactionComment.php
··· 15 15 return ($this->getTransactionPHID() != null); 16 16 } 17 17 18 + public function getConfiguration() { 19 + $config = parent::getConfiguration(); 20 + $config[self::CONFIG_COLUMN_SCHEMA] = array( 21 + 'lineNumber' => 'uint32?', 22 + 'lineLength' => 'uint32?', 23 + ) + $config[self::CONFIG_COLUMN_SCHEMA]; 24 + return $config; 25 + } 26 + 18 27 }
+17
src/applications/phame/storage/PhameBlog.php
··· 27 27 self::CONFIG_SERIALIZATION => array( 28 28 'configData' => self::SERIALIZATION_JSON, 29 29 ), 30 + self::CONFIG_COLUMN_SCHEMA => array( 31 + 'name' => 'text64', 32 + 'description' => 'text', 33 + 'domain' => 'text255?', 34 + 'joinPolicy' => 'policy', 35 + ), 36 + self::CONFIG_KEY_SCHEMA => array( 37 + 'key_phid' => null, 38 + 'phid' => array( 39 + 'columns' => array('phid'), 40 + 'unique' => true, 41 + ), 42 + 'domain' => array( 43 + 'columns' => array('domain'), 44 + 'unique' => true, 45 + ), 46 + ), 30 47 ) + parent::getConfiguration(); 31 48 } 32 49
+21
src/applications/phame/storage/PhamePost.php
··· 88 88 self::CONFIG_SERIALIZATION => array( 89 89 'configData' => self::SERIALIZATION_JSON, 90 90 ), 91 + self::CONFIG_COLUMN_SCHEMA => array( 92 + 'title' => 'text255', 93 + 'phameTitle' => 'text64', 94 + 'body' => 'text', 95 + 'visibility' => 'uint32', 96 + 'datePublished' => 'epoch?', 97 + ), 98 + self::CONFIG_KEY_SCHEMA => array( 99 + 'key_phid' => null, 100 + 'phid' => array( 101 + 'columns' => array('phid'), 102 + 'unique' => true, 103 + ), 104 + 'phameTitle' => array( 105 + 'columns' => array('bloggerPHID', 'phameTitle'), 106 + 'unique' => true, 107 + ), 108 + 'bloggerPosts' => array( 109 + 'columns' => array('bloggerPHID', 'visibility', 'datePublished'), 110 + ), 111 + ), 91 112 ) + parent::getConfiguration(); 92 113 } 93 114
+11
src/applications/phame/storage/PhameSchemaSpec.php
··· 1 + <?php 2 + 3 + final class PhameSchemaSpec 4 + extends PhabricatorConfigSchemaSpec { 5 + 6 + public function buildSchemata() { 7 + $this->buildLiskSchemata('PhameDAO'); 8 + $this->buildEdgeSchemata(new PhameBlog()); 9 + } 10 + 11 + }
+11
src/applications/phlux/storage/PhluxSchemaSpec.php
··· 1 + <?php 2 + 3 + final class PhluxSchemaSpec 4 + extends PhabricatorConfigSchemaSpec { 5 + 6 + public function buildSchemata() { 7 + $this->buildLiskSchemata('PhluxDAO'); 8 + $this->buildTransactionSchema(new PhluxTransaction()); 9 + } 10 + 11 + }
+9
src/applications/phlux/storage/PhluxVariable.php
··· 16 16 self::CONFIG_SERIALIZATION => array( 17 17 'variableValue' => self::SERIALIZATION_JSON 18 18 ), 19 + self::CONFIG_COLUMN_SCHEMA => array( 20 + 'variableKey' => 'text64', 21 + ), 22 + self::CONFIG_KEY_SCHEMA => array( 23 + 'key_key' => array( 24 + 'columns' => array('variableKey'), 25 + 'unique' => true, 26 + ), 27 + ), 19 28 ) + parent::getConfiguration(); 20 29 } 21 30