Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15284254
D10576.id25402.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
5 KB
Referenced Files
None
Subscribers
None
D10576.id25402.diff
View Options
diff --git a/resources/sql/autopatches/20140926.schema.01.droprelev.sql b/resources/sql/autopatches/20140926.schema.01.droprelev.sql
new file mode 100644
--- /dev/null
+++ b/resources/sql/autopatches/20140926.schema.01.droprelev.sql
@@ -0,0 +1 @@
+DROP TABLE {$NAMESPACE}_releeph.releeph_event;
diff --git a/resources/sql/autopatches/20140926.schema.02.droprelreqev.sql b/resources/sql/autopatches/20140926.schema.02.droprelreqev.sql
new file mode 100644
--- /dev/null
+++ b/resources/sql/autopatches/20140926.schema.02.droprelreqev.sql
@@ -0,0 +1 @@
+DROP TABLE {$NAMESPACE}_releeph.releeph_requestevent;
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -2803,6 +2803,7 @@
'ReleephRequestViewController' => 'applications/releeph/controller/request/ReleephRequestViewController.php',
'ReleephRequestorFieldSpecification' => 'applications/releeph/field/specification/ReleephRequestorFieldSpecification.php',
'ReleephRevisionFieldSpecification' => 'applications/releeph/field/specification/ReleephRevisionFieldSpecification.php',
+ 'ReleephSchemaSpec' => 'applications/releeph/storage/ReleephSchemaSpec.php',
'ReleephSeverityFieldSpecification' => 'applications/releeph/field/specification/ReleephSeverityFieldSpecification.php',
'ReleephSummaryFieldSpecification' => 'applications/releeph/field/specification/ReleephSummaryFieldSpecification.php',
'ReleephWorkCanPushConduitAPIMethod' => 'applications/releeph/conduit/work/ReleephWorkCanPushConduitAPIMethod.php',
@@ -5896,6 +5897,7 @@
'ReleephRequestViewController' => 'ReleephBranchController',
'ReleephRequestorFieldSpecification' => 'ReleephFieldSpecification',
'ReleephRevisionFieldSpecification' => 'ReleephFieldSpecification',
+ 'ReleephSchemaSpec' => 'PhabricatorConfigSchemaSpec',
'ReleephSeverityFieldSpecification' => 'ReleephLevelFieldSpecification',
'ReleephSummaryFieldSpecification' => 'ReleephFieldSpecification',
'ReleephWorkCanPushConduitAPIMethod' => 'ReleephConduitAPIMethod',
diff --git a/src/applications/releeph/storage/ReleephBranch.php b/src/applications/releeph/storage/ReleephBranch.php
--- a/src/applications/releeph/storage/ReleephBranch.php
+++ b/src/applications/releeph/storage/ReleephBranch.php
@@ -29,6 +29,26 @@
self::CONFIG_SERIALIZATION => array(
'details' => self::SERIALIZATION_JSON,
),
+ self::CONFIG_COLUMN_SCHEMA => array(
+ 'basename' => 'text64',
+ 'isActive' => 'bool',
+ 'symbolicName' => 'text64?',
+ 'name' => 'text128',
+ ),
+ self::CONFIG_KEY_SCHEMA => array(
+ 'releephProjectID' => array(
+ 'columns' => array('releephProjectID', 'symbolicName'),
+ 'unique' => true,
+ ),
+ 'releephProjectID_2' => array(
+ 'columns' => array('releephProjectID', 'basename'),
+ 'unique' => true,
+ ),
+ 'releephProjectID_name' => array(
+ 'columns' => array('releephProjectID', 'name'),
+ 'unique' => true,
+ ),
+ ),
) + parent::getConfiguration();
}
diff --git a/src/applications/releeph/storage/ReleephProject.php b/src/applications/releeph/storage/ReleephProject.php
--- a/src/applications/releeph/storage/ReleephProject.php
+++ b/src/applications/releeph/storage/ReleephProject.php
@@ -29,6 +29,17 @@
self::CONFIG_SERIALIZATION => array(
'details' => self::SERIALIZATION_JSON,
),
+ self::CONFIG_COLUMN_SCHEMA => array(
+ 'name' => 'text255',
+ 'trunkBranch' => 'text255',
+ 'isActive' => 'bool',
+ ),
+ self::CONFIG_KEY_SCHEMA => array(
+ 'projectName' => array(
+ 'columns' => array('name'),
+ 'unique' => true,
+ ),
+ ),
) + parent::getConfiguration();
}
diff --git a/src/applications/releeph/storage/ReleephRequest.php b/src/applications/releeph/storage/ReleephRequest.php
--- a/src/applications/releeph/storage/ReleephRequest.php
+++ b/src/applications/releeph/storage/ReleephRequest.php
@@ -153,6 +153,31 @@
'details' => self::SERIALIZATION_JSON,
'userIntents' => self::SERIALIZATION_JSON,
),
+ self::CONFIG_COLUMN_SCHEMA => array(
+ 'summary' => 'text',
+ 'requstCommitPHID' => 'phid?',
+ 'commitIdentifier' => 'text40',
+ 'pickStatus' => 'uint32',
+ 'inBranch' => 'bool',
+ 'mailKey' => 'bytes20',
+ ),
+ self::CONFIG_KEY_SCHEMA => array(
+ 'key_phid' => null,
+ 'phid' => array(
+ 'columns' => array('phid'),
+ 'unique' => true,
+ ),
+ 'requestIdentifierBranch' => array(
+ 'columns' => array('requestCommitPHID', 'branchID'),
+ 'unique' => true,
+ ),
+ 'branchID' => array(
+ 'columns' => array('branchID'),
+ ),
+ 'key_requestedObject' => array(
+ 'columns' => array('requestedObjectPHID'),
+ ),
+ ),
) + parent::getConfiguration();
}
diff --git a/src/applications/releeph/storage/ReleephSchemaSpec.php b/src/applications/releeph/storage/ReleephSchemaSpec.php
new file mode 100644
--- /dev/null
+++ b/src/applications/releeph/storage/ReleephSchemaSpec.php
@@ -0,0 +1,20 @@
+<?php
+
+final class ReleephSchemaSpec
+ extends PhabricatorConfigSchemaSpec {
+
+ public function buildSchemata() {
+ $this->buildLiskSchemata('ReleephDAO');
+
+ $this->buildTransactionSchema(
+ new ReleephProductTransaction());
+
+ $this->buildTransactionSchema(
+ new ReleephBranchTransaction());
+
+ $this->buildTransactionSchema(
+ new ReleephRequestTransaction(),
+ new ReleephRequestTransactionComment());
+ }
+
+}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 5, 9:29 AM (21 h, 32 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7224647
Default Alt Text
D10576.id25402.diff (5 KB)
Attached To
Mode
D10576: Generate expected schemata for Releeph
Attached
Detach File
Event Timeline
Log In to Comment