hasTable('quicknotes_tasks')) { $schema->dropTable('quicknotes_tasks'); } $this->ensureColumnIsNullable($schema, 'quicknotes_notes', 'pinned'); return $schema; } 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; } }