| @@ 41-73 (lines=33) @@ | ||
| 38 | /** |
|
| 39 | * Auto-generated migration step: Please modify to your needs! |
|
| 40 | */ |
|
| 41 | class Version0017Date20200202112902 extends SimpleMigrationStep { |
|
| 42 | ||
| 43 | ||
| 44 | /** @var IDBConnection */ |
|
| 45 | private $connection; |
|
| 46 | ||
| 47 | ||
| 48 | /** |
|
| 49 | * @param IDBConnection $connection |
|
| 50 | */ |
|
| 51 | public function __construct(IDBConnection $connection) { |
|
| 52 | $this->connection = $connection; |
|
| 53 | } |
|
| 54 | ||
| 55 | ||
| 56 | /** |
|
| 57 | * @param IOutput $output |
|
| 58 | * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 59 | * @param array $options |
|
| 60 | * |
|
| 61 | * @return null|ISchemaWrapper |
|
| 62 | * @throws SchemaException |
|
| 63 | */ |
|
| 64 | public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) { |
|
| 65 | /** @var ISchemaWrapper $schema */ |
|
| 66 | $schema = $schemaClosure(); |
|
| 67 | ||
| 68 | $schema->dropTable('circles_members'); |
|
| 69 | ||
| 70 | return $schema; |
|
| 71 | } |
|
| 72 | ||
| 73 | } |
|
| 74 | ||
| @@ 41-73 (lines=33) @@ | ||
| 38 | /** |
|
| 39 | * Auto-generated migration step: Please modify to your needs! |
|
| 40 | */ |
|
| 41 | class Version0017Date20200202112904 extends SimpleMigrationStep { |
|
| 42 | ||
| 43 | ||
| 44 | /** @var IDBConnection */ |
|
| 45 | private $connection; |
|
| 46 | ||
| 47 | ||
| 48 | /** |
|
| 49 | * @param IDBConnection $connection |
|
| 50 | */ |
|
| 51 | public function __construct(IDBConnection $connection) { |
|
| 52 | $this->connection = $connection; |
|
| 53 | } |
|
| 54 | ||
| 55 | ||
| 56 | /** |
|
| 57 | * @param IOutput $output |
|
| 58 | * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
|
| 59 | * @param array $options |
|
| 60 | * |
|
| 61 | * @return null|ISchemaWrapper |
|
| 62 | * @throws SchemaException |
|
| 63 | */ |
|
| 64 | public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) { |
|
| 65 | /** @var ISchemaWrapper $schema */ |
|
| 66 | $schema = $schemaClosure(); |
|
| 67 | ||
| 68 | $schema->dropTable('circles_mb_tmp'); |
|
| 69 | ||
| 70 | return $schema; |
|
| 71 | } |
|
| 72 | ||
| 73 | } |
|
| 74 | ||