| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class Version030201Date20210129200000 extends SimpleMigrationStep |
||
| 18 | { |
||
| 19 | |||
| 20 | /** @var IDBConnection */ |
||
| 21 | private $connection; |
||
| 22 | |||
| 23 | public function __construct(IDBConnection $connection) |
||
| 24 | { |
||
| 25 | $this->connection = $connection; |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param IOutput $output |
||
| 30 | * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
||
| 31 | * @param array $options |
||
| 32 | */ |
||
| 33 | public function preSchemaChange(IOutput $output, Closure $schemaClosure, array $options) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param IOutput $output |
||
| 39 | * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
||
| 40 | * @param array $options |
||
| 41 | * @return null|ISchemaWrapper |
||
| 42 | */ |
||
| 43 | public function changeSchema(IOutput $output, Closure $schemaClosure, array $options) |
||
| 44 | { |
||
| 45 | /** @var ISchemaWrapper $schema */ |
||
| 46 | $schema = $schemaClosure(); |
||
| 47 | $table = $schema->getTable('analytics_dataset'); |
||
| 48 | $table->getColumn('link')->setLength(500); |
||
| 49 | return $schema; |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @param IOutput $output |
||
| 54 | * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
||
| 55 | * @param array $options |
||
| 56 | */ |
||
| 57 | public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options) |
||
| 59 | } |
||
| 60 | } |
||
| 61 |