| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | protected function ensureColumnIsNullable(ISchemaWrapper $schema, string $tableName, string $columnName): bool { |
||
| 34 | $table = $schema->getTable($tableName); |
||
| 35 | $column = $table->getColumn($columnName); |
||
| 36 | |||
| 37 | if ($column->getNotnull()) { |
||
| 38 | $column->setNotnull(false); |
||
| 39 | return true; |
||
| 40 | } |
||
| 41 | |||
| 42 | return false; |
||
| 43 | } |
||
| 46 |