Support vague flight segments with airport/date-only details
All checks were successful
Build and Push Image / docker-build-and-push (push) Successful in 2m44s

This commit is contained in:
2026-02-26 09:18:23 -05:00
parent 118aee639e
commit 9a0636cc4a
6 changed files with 148 additions and 45 deletions

View File

@@ -195,7 +195,7 @@ export function runMigrations(db: Database): void {
airline_iata TEXT,
airline_icao TEXT,
airline_name TEXT,
flight_number TEXT NOT NULL,
flight_number TEXT,
position INTEGER NOT NULL DEFAULT 0,
created_at TEXT NOT NULL DEFAULT (datetime('now'))
)
@@ -216,12 +216,18 @@ export function runMigrations(db: Database): void {
arrival_airport_code TEXT,
arrival_terminal TEXT,
arrival_gate TEXT,
arrival_date TEXT,
arrival_datetime TEXT,
arrival_timezone TEXT,
created_at TEXT NOT NULL DEFAULT (datetime('now')),
updated_at TEXT NOT NULL DEFAULT (datetime('now'))
)
`);
try {
db.run(`ALTER TABLE flight_routes ADD COLUMN arrival_date TEXT`);
} catch {
/* already exists */
}
// Flight booking passengers - links people to flight bookings
db.run(`