| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class Version0820Date20210708130230 extends SimpleMigrationStep { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param IOutput $output |
||
| 19 | * @param Closure $schemaClosure The `\Closure` returns a `ISchemaWrapper` |
||
| 20 | * @param array $options |
||
| 21 | * @return null|ISchemaWrapper |
||
| 22 | */ |
||
| 23 | public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper { |
||
| 24 | /** @var ISchemaWrapper $schema */ |
||
| 25 | $schema = $schemaClosure(); |
||
| 26 | |||
| 27 | $this->ensureColumnIsNullable($schema, 'facerecog_persons', 'is_valid'); |
||
| 28 | $this->ensureColumnIsNullable($schema, 'facerecog_images', 'is_processed'); |
||
| 29 | |||
| 30 | return null; |
||
| 31 | } |
||
| 32 | |||
| 33 | protected function ensureColumnIsNullable(ISchemaWrapper $schema, string $tableName, string $columnName): bool { |
||
| 43 | } |
||
| 44 | |||
| 46 |