@@ -31,19 +31,19 @@ |
||
31 | 31 | |
32 | 32 | class Version010402Date20190107124745 extends SimpleMigrationStep { |
33 | 33 | |
34 | - /** |
|
35 | - * @param IOutput $output |
|
36 | - * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
37 | - * @param array $options |
|
38 | - * @return null|ISchemaWrapper |
|
39 | - */ |
|
40 | - public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) { |
|
41 | - /** @var ISchemaWrapper $schema */ |
|
42 | - $schema = $schemaClosure(); |
|
34 | + /** |
|
35 | + * @param IOutput $output |
|
36 | + * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
37 | + * @param array $options |
|
38 | + * @return null|ISchemaWrapper |
|
39 | + */ |
|
40 | + public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) { |
|
41 | + /** @var ISchemaWrapper $schema */ |
|
42 | + $schema = $schemaClosure(); |
|
43 | 43 | |
44 | - $table = $schema->getTable('oauth2_clients'); |
|
45 | - $table->dropIndex('oauth2_client_id_idx'); |
|
46 | - $table->addUniqueIndex(['client_identifier'], 'oauth2_client_id_idx'); |
|
47 | - return $schema; |
|
48 | - } |
|
44 | + $table = $schema->getTable('oauth2_clients'); |
|
45 | + $table->dropIndex('oauth2_client_id_idx'); |
|
46 | + $table->addUniqueIndex(['client_identifier'], 'oauth2_client_id_idx'); |
|
47 | + return $schema; |
|
48 | + } |
|
49 | 49 | } |