| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) { |
||
| 32 | /** @var ISchemaWrapper $schema */ |
||
| 33 | $schema = $schemaClosure(); |
||
| 34 | |||
| 35 | if (!$schema->hasTable('gallery_file_properties')) { |
||
| 36 | $table = $schema->createTable('gallery_file_properties'); |
||
| 37 | $table->addColumn('id', 'integer', [ |
||
| 38 | 'notnull' => true, |
||
| 39 | ]); |
||
| 40 | $table->addColumn('modifications', 'string', [ |
||
| 41 | 'notnull' => false, |
||
| 42 | ]); |
||
| 43 | } |
||
| 44 | return $schema; |
||
| 45 | } |
||
| 46 | |||
| 55 |