7 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ ALTER TABLE {$NAMESPACE}_calendar .calendar_event
2
+ CHANGE status status INT UNSIGNED NOT NULL ;
Original file line number Diff line number Diff line change
1
+ ALTER TABLE {$NAMESPACE}_calendar .calendar_holiday
2
+ CHANGE name name VARCHAR (64 ) NOT NULL COLLATE utf8_general_ci;
Original file line number Diff line number Diff line change 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 ' ,
Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ public function getHumanStatus() {
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
Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ final class PhabricatorCalendarHoliday extends PhabricatorCalendarDAO {
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
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ final class PhabricatorCalendarSchemaSpec
4
+ extends PhabricatorConfigSchemaSpec {
5
+
6
+ public function buildSchemata () {
7
+ $ this ->buildLiskSchemata ('PhabricatorCalendarDAO ' );
8
+ }
9
+
10
+ }
Original file line number Diff line number Diff line change @@ -292,6 +292,9 @@ private function getDetailsForDataType($data_type) {
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> ' );
0 commit comments