@@ -28,23 +28,23 @@ |
||
| 28 | 28 | |
| 29 | 29 | class Version1004Date20170924124212 extends SimpleMigrationStep { |
| 30 | 30 | |
| 31 | - /** |
|
| 32 | - * @param IOutput $output |
|
| 33 | - * @param \Closure $schemaClosure The `\Closure` returns a `Schema` |
|
| 34 | - * @param array $options |
|
| 35 | - * @return null|Schema |
|
| 36 | - * @since 13.0.0 |
|
| 37 | - */ |
|
| 38 | - public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) { |
|
| 39 | - /** @var Schema $schema */ |
|
| 40 | - $schema = $schemaClosure(); |
|
| 31 | + /** |
|
| 32 | + * @param IOutput $output |
|
| 33 | + * @param \Closure $schemaClosure The `\Closure` returns a `Schema` |
|
| 34 | + * @param array $options |
|
| 35 | + * @return null|Schema |
|
| 36 | + * @since 13.0.0 |
|
| 37 | + */ |
|
| 38 | + public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) { |
|
| 39 | + /** @var Schema $schema */ |
|
| 40 | + $schema = $schemaClosure(); |
|
| 41 | 41 | |
| 42 | - $table = $schema->getTable('cards'); |
|
| 43 | - $table->addIndex(['addressbookid']); |
|
| 42 | + $table = $schema->getTable('cards'); |
|
| 43 | + $table->addIndex(['addressbookid']); |
|
| 44 | 44 | |
| 45 | - $table = $schema->getTable('cards_properties'); |
|
| 46 | - $table->addIndex(['addressbookid']); |
|
| 45 | + $table = $schema->getTable('cards_properties'); |
|
| 46 | + $table->addIndex(['addressbookid']); |
|
| 47 | 47 | |
| 48 | - return $schema; |
|
| 49 | - } |
|
| 48 | + return $schema; |
|
| 49 | + } |
|
| 50 | 50 | } |