ensureColumnIsNullable($schema, 'user_status', 'is_user_defined'); return $result ? $schema : null; } protected function ensureColumnIsNullable(ISchemaWrapper $schema, string $tableName, string $columnName): bool { $table = $schema->getTable($tableName); $column = $table->getColumn($columnName); if ($column->getNotnull()) { $column->setNotnull(false); return true; } return false; } }