@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

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

authored by

James Rhodes and committed by
epriestley
dd3b3bdd c29dbf81

+44
+10
resources/sql/patches/20130330.phrequent.sql
··· 1 + CREATE TABLE {$NAMESPACE}_phrequent.phrequent_usertime ( 2 + id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, 3 + userPHID VARCHAR(64) NOT NULL COLLATE utf8_bin, 4 + objectPHID VARCHAR(64) NULL COLLATE utf8_bin, 5 + note LONGTEXT NULL COLLATE utf8_bin, 6 + dateStarted INT UNSIGNED NOT NULL, 7 + dateEnded INT UNSIGNED NULL, 8 + dateCreated INT UNSIGNED NOT NULL, 9 + dateModified INT UNSIGNED NOT NULL 10 + ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+12
src/applications/phrequent/storage/PhrequentDAO.php
··· 1 + <?php 2 + 3 + /** 4 + * @group phrequent 5 + */ 6 + abstract class PhrequentDAO extends PhabricatorLiskDAO { 7 + 8 + public function getApplicationName() { 9 + return 'phrequent'; 10 + } 11 + 12 + }
+14
src/applications/phrequent/storage/PhrequentUserTime.php
··· 1 + <?php 2 + 3 + /** 4 + * @group phrequent 5 + */ 6 + final class PhrequentUserTime extends PhrequentDAO { 7 + 8 + protected $userPHID; 9 + protected $objectPHID; 10 + protected $note; 11 + protected $dateStarted; 12 + protected $dateEnded; 13 + 14 + }
+8
src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
··· 183 183 'type' => 'db', 184 184 'name' => 'phortune', 185 185 ), 186 + 'db.phrequent' => array( 187 + 'type' => 'db', 188 + 'name' => 'phrequent', 189 + ), 186 190 '0000.legacy.sql' => array( 187 191 'type' => 'sql', 188 192 'name' => $this->getPatchPath('0000.legacy.sql'), ··· 1213 1217 '20130324.phortuneproduct.sql' => array( 1214 1218 'type' => 'sql', 1215 1219 'name' => $this->getPatchPath('20130324.phortuneproduct.sql'), 1220 + ), 1221 + '20130330.phrequent.sql' => array( 1222 + 'type' => 'sql', 1223 + 'name' => $this->getPatchPath('20130330.phrequent.sql'), 1216 1224 ), 1217 1225 ); 1218 1226 }