@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

Create Edge tables in phabricator_calendar db.

Summary: Closes T7945, phabricator_calendar db should now have Edge tables.

Test Plan: Use phabricator_calendar db in mysql, show create table edge, verify edge tables are present.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7945

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

+28
+16
resources/sql/autopatches/20150427.calendar.1.edge.sql
··· 1 + CREATE TABLE {$NAMESPACE}_calendar.edge ( 2 + src VARBINARY(64) NOT NULL, 3 + type INT UNSIGNED NOT NULL, 4 + dst VARBINARY(64) NOT NULL, 5 + dateCreated INT UNSIGNED NOT NULL, 6 + seq INT UNSIGNED NOT NULL, 7 + dataID INT UNSIGNED, 8 + PRIMARY KEY (src, type, dst), 9 + KEY `src` (src, type, dateCreated, seq), 10 + UNIQUE KEY `key_dst` (dst, type, src) 11 + ) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT}; 12 + 13 + CREATE TABLE {$NAMESPACE}_calendar.edgedata ( 14 + id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, 15 + data LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT} 16 + ) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
+2
src/__phutil_library_map__.php
··· 1493 1493 'PhabricatorCalendarHoliday' => 'applications/calendar/storage/PhabricatorCalendarHoliday.php', 1494 1494 'PhabricatorCalendarHolidayTestCase' => 'applications/calendar/storage/__tests__/PhabricatorCalendarHolidayTestCase.php', 1495 1495 'PhabricatorCalendarRemarkupRule' => 'applications/calendar/remarkup/PhabricatorCalendarRemarkupRule.php', 1496 + 'PhabricatorCalendarSchemaSpec' => 'applications/calendar/storage/PhabricatorCalendarSchemaSpec.php', 1496 1497 'PhabricatorCalendarViewController' => 'applications/calendar/controller/PhabricatorCalendarViewController.php', 1497 1498 'PhabricatorCampfireProtocolAdapter' => 'infrastructure/daemon/bot/adapter/PhabricatorCampfireProtocolAdapter.php', 1498 1499 'PhabricatorCelerityApplication' => 'applications/celerity/application/PhabricatorCelerityApplication.php', ··· 4813 4814 'PhabricatorCalendarHoliday' => 'PhabricatorCalendarDAO', 4814 4815 'PhabricatorCalendarHolidayTestCase' => 'PhabricatorTestCase', 4815 4816 'PhabricatorCalendarRemarkupRule' => 'PhabricatorObjectRemarkupRule', 4817 + 'PhabricatorCalendarSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4816 4818 'PhabricatorCalendarViewController' => 'PhabricatorCalendarController', 4817 4819 'PhabricatorCampfireProtocolAdapter' => 'PhabricatorBotBaseStreamingProtocolAdapter', 4818 4820 'PhabricatorCelerityApplication' => 'PhabricatorApplication',
+10
src/applications/calendar/storage/PhabricatorCalendarSchemaSpec.php
··· 1 + <?php 2 + 3 + final class PhabricatorCalendarSchemaSpec 4 + extends PhabricatorConfigSchemaSpec { 5 + 6 + public function buildSchemata() { 7 + $this->buildEdgeSchemata(new PhabricatorCalendarEvent()); 8 + } 9 + 10 + }