mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-22 06:41:46 +00:00
fix: syntax
This commit is contained in:
@@ -1614,6 +1614,7 @@ function runMigrations(db: Database.Database): void {
|
|||||||
// Migration 102: Add check_in_end column for check-in time ranges
|
// Migration 102: Add check_in_end column for check-in time ranges
|
||||||
() => {
|
() => {
|
||||||
try { db.exec('ALTER TABLE day_accommodations ADD COLUMN check_in_end TEXT'); } catch (err: any) { if (!err.message?.includes('duplicate column name')) throw err; }
|
try { db.exec('ALTER TABLE day_accommodations ADD COLUMN check_in_end TEXT'); } catch (err: any) { if (!err.message?.includes('duplicate column name')) throw err; }
|
||||||
|
},
|
||||||
// Migration 103: System notices — user tracking columns + dismissals table
|
// Migration 103: System notices — user tracking columns + dismissals table
|
||||||
() => {
|
() => {
|
||||||
db.exec(`ALTER TABLE users ADD COLUMN first_seen_version TEXT NOT NULL DEFAULT '0.0.0'`);
|
db.exec(`ALTER TABLE users ADD COLUMN first_seen_version TEXT NOT NULL DEFAULT '0.0.0'`);
|
||||||
|
|||||||
Reference in New Issue
Block a user