style(db): apply prettier formatting to migration 019

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
This commit is contained in:
Codex
2026-06-08 21:38:24 +09:00
parent dca56d9493
commit 5f06673ac6

View File

@@ -19,17 +19,18 @@ import type { SchemaMigrationDefinition } from './types.js';
* number so the live deployment gets them. It is a no-op on databases where * number so the live deployment gets them. It is a no-op on databases where
* migration 015 already ran (fresh installs), thanks to the column guards. * migration 015 already ran (fresh installs), thanks to the column guards.
*/ */
export const TURN_PROGRESS_TEXT_RECOVERY_MIGRATION: SchemaMigrationDefinition = { export const TURN_PROGRESS_TEXT_RECOVERY_MIGRATION: SchemaMigrationDefinition =
version: 19, {
name: 'turn_progress_text_recovery', version: 19,
apply(database: Database) { name: 'turn_progress_text_recovery',
if (!tableHasColumn(database, 'paired_turns', 'progress_text')) { apply(database: Database) {
database.exec(`ALTER TABLE paired_turns ADD COLUMN progress_text TEXT`); if (!tableHasColumn(database, 'paired_turns', 'progress_text')) {
} database.exec(`ALTER TABLE paired_turns ADD COLUMN progress_text TEXT`);
if (!tableHasColumn(database, 'paired_turns', 'progress_updated_at')) { }
database.exec( if (!tableHasColumn(database, 'paired_turns', 'progress_updated_at')) {
`ALTER TABLE paired_turns ADD COLUMN progress_updated_at TEXT`, database.exec(
); `ALTER TABLE paired_turns ADD COLUMN progress_updated_at TEXT`,
} );
}, }
}; },
};