mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-28 08:20:57 +01:00
Added initial storage structure for Phrequent.
Summary: Added the initial storage structure (DB tables and DAO classes) for Phrequent. Test Plan: Apply the patch and run `bin/storage upgrade`. It should complete successfully. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2857 Differential Revision: https://secure.phabricator.com/D5476
This commit is contained in:
parent
c29dbf8189
commit
dd3b3bdd5e
4 changed files with 44 additions and 0 deletions
10
resources/sql/patches/20130330.phrequent.sql
Normal file
10
resources/sql/patches/20130330.phrequent.sql
Normal file
|
@ -0,0 +1,10 @@
|
|||
CREATE TABLE {$NAMESPACE}_phrequent.phrequent_usertime (
|
||||
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
||||
userPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
||||
objectPHID VARCHAR(64) NULL COLLATE utf8_bin,
|
||||
note LONGTEXT NULL COLLATE utf8_bin,
|
||||
dateStarted INT UNSIGNED NOT NULL,
|
||||
dateEnded INT UNSIGNED NULL,
|
||||
dateCreated INT UNSIGNED NOT NULL,
|
||||
dateModified INT UNSIGNED NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
12
src/applications/phrequent/storage/PhrequentDAO.php
Normal file
12
src/applications/phrequent/storage/PhrequentDAO.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @group phrequent
|
||||
*/
|
||||
abstract class PhrequentDAO extends PhabricatorLiskDAO {
|
||||
|
||||
public function getApplicationName() {
|
||||
return 'phrequent';
|
||||
}
|
||||
|
||||
}
|
14
src/applications/phrequent/storage/PhrequentUserTime.php
Normal file
14
src/applications/phrequent/storage/PhrequentUserTime.php
Normal file
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @group phrequent
|
||||
*/
|
||||
final class PhrequentUserTime extends PhrequentDAO {
|
||||
|
||||
protected $userPHID;
|
||||
protected $objectPHID;
|
||||
protected $note;
|
||||
protected $dateStarted;
|
||||
protected $dateEnded;
|
||||
|
||||
}
|
|
@ -183,6 +183,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
|
|||
'type' => 'db',
|
||||
'name' => 'phortune',
|
||||
),
|
||||
'db.phrequent' => array(
|
||||
'type' => 'db',
|
||||
'name' => 'phrequent',
|
||||
),
|
||||
'0000.legacy.sql' => array(
|
||||
'type' => 'sql',
|
||||
'name' => $this->getPatchPath('0000.legacy.sql'),
|
||||
|
@ -1214,6 +1218,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
|
|||
'type' => 'sql',
|
||||
'name' => $this->getPatchPath('20130324.phortuneproduct.sql'),
|
||||
),
|
||||
'20130330.phrequent.sql' => array(
|
||||
'type' => 'sql',
|
||||
'name' => $this->getPatchPath('20130330.phrequent.sql'),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue