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