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
All checks were successful
Build and Push Image / docker-build-and-push (push) Successful in 2m44s
This commit is contained in:
@@ -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(`
|
||||
|
||||
Reference in New Issue
Block a user