@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 schemata for Calendar

Summary:
Ref T1191.

- There was a varchar(50) column. I changed it to `text64`, since this length is unusual.
- There was an int(3) column. I changed it to `int32`, since this length is unusual.

Test Plan: Ran migrations, saw warnings disappear from config tool.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

Maniphest Tasks: T1191

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

+34
+2
resources/sql/autopatches/20140919.schema.01.calstatus.sql
··· 1 + ALTER TABLE {$NAMESPACE}_calendar.calendar_event 2 + CHANGE status status INT UNSIGNED NOT NULL;
+2
resources/sql/autopatches/20140919.schema.02.calname.sql
··· 1 + ALTER TABLE {$NAMESPACE}_calendar.calendar_holiday 2 + CHANGE name name VARCHAR(64) NOT NULL COLLATE utf8_general_ci;
+2
src/__phutil_library_map__.php
··· 1300 1300 'PhabricatorCalendarEventViewController' => 'applications/calendar/controller/PhabricatorCalendarEventViewController.php', 1301 1301 'PhabricatorCalendarHoliday' => 'applications/calendar/storage/PhabricatorCalendarHoliday.php', 1302 1302 'PhabricatorCalendarHolidayTestCase' => 'applications/calendar/storage/__tests__/PhabricatorCalendarHolidayTestCase.php', 1303 + 'PhabricatorCalendarSchemaSpec' => 'applications/calendar/storage/PhabricatorCalendarSchemaSpec.php', 1303 1304 'PhabricatorCalendarViewController' => 'applications/calendar/controller/PhabricatorCalendarViewController.php', 1304 1305 'PhabricatorCampfireProtocolAdapter' => 'infrastructure/daemon/bot/adapter/PhabricatorCampfireProtocolAdapter.php', 1305 1306 'PhabricatorChangeParserTestCase' => 'applications/repository/worker/__tests__/PhabricatorChangeParserTestCase.php', ··· 4208 4209 'PhabricatorCalendarEventViewController' => 'PhabricatorCalendarController', 4209 4210 'PhabricatorCalendarHoliday' => 'PhabricatorCalendarDAO', 4210 4211 'PhabricatorCalendarHolidayTestCase' => 'PhabricatorTestCase', 4212 + 'PhabricatorCalendarSchemaSpec' => 'PhabricatorConfigSchemaSpec', 4211 4213 'PhabricatorCalendarViewController' => 'PhabricatorCalendarController', 4212 4214 'PhabricatorCampfireProtocolAdapter' => 'PhabricatorBotBaseStreamingProtocolAdapter', 4213 4215 'PhabricatorChangeParserTestCase' => 'PhabricatorWorkingCopyTestCase',
+6
src/applications/calendar/storage/PhabricatorCalendarEvent.php
··· 37 37 public function getConfiguration() { 38 38 return array( 39 39 self::CONFIG_AUX_PHID => true, 40 + self::CONFIG_COLUMN_SCHEMA => array( 41 + 'dateFrom' => 'epoch', 42 + 'dateTo' => 'epoch', 43 + 'status' => 'uint32', 44 + 'description' => 'text', 45 + ), 40 46 ) + parent::getConfiguration(); 41 47 } 42 48
+9
src/applications/calendar/storage/PhabricatorCalendarHoliday.php
··· 8 8 public function getConfiguration() { 9 9 return array( 10 10 self::CONFIG_TIMESTAMPS => false, 11 + self::CONFIG_COLUMN_SCHEMA => array( 12 + 'day' => 'date', 13 + 'name' => 'text64', 14 + ), 15 + self::CONFIG_KEY_SCHEMA => array( 16 + 'day' => array( 17 + 'columns' => array('day'), 18 + ), 19 + ), 11 20 ) + parent::getConfiguration(); 12 21 } 13 22
+10
src/applications/calendar/storage/PhabricatorCalendarSchemaSpec.php
··· 1 + <?php 2 + 3 + final class PhabricatorCalendarSchemaSpec 4 + extends PhabricatorConfigSchemaSpec { 5 + 6 + public function buildSchemata() { 7 + $this->buildLiskSchemata('PhabricatorCalendarDAO'); 8 + } 9 + 10 + }
+3
src/applications/config/schema/PhabricatorConfigSchemaSpec.php
··· 292 292 case 'double': 293 293 $column_type = 'double'; 294 294 break; 295 + case 'date': 296 + $column_type = 'date'; 297 + break; 295 298 default: 296 299 $column_type = pht('<unknown>'); 297 300 $charset = pht('<unknown>');