| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
||
| 22 | /** @var ISchemaWrapper $schema */ |
||
| 23 | $schema = $schemaClosure(); |
||
| 24 | |||
| 25 | $calendarsTable = $schema->getTable('calendars'); |
||
| 26 | $calendarsTable->addColumn('deleted_at', Types::INTEGER, [ |
||
| 27 | 'notnull' => false, |
||
| 28 | 'length' => 4, |
||
| 29 | 'unsigned' => true, |
||
| 30 | ]); |
||
| 31 | $calendarsTable->addIndex([ |
||
| 32 | 'principaluri', |
||
| 33 | 'deleted_at', |
||
| 34 | ], 'cals_princ_del_idx'); |
||
| 35 | |||
| 36 | $calendarObjectsTable = $schema->getTable('calendarobjects'); |
||
| 37 | $calendarObjectsTable->addColumn('deleted_at', Types::INTEGER, [ |
||
| 38 | 'notnull' => false, |
||
| 39 | 'length' => 4, |
||
| 40 | 'unsigned' => true, |
||
| 41 | ]); |
||
| 42 | |||
| 43 | return $schema; |
||
| 44 | } |
||
| 46 |