Import package tour activities and align day-indexed lodging scheduling
All checks were successful
Build and Push Image / docker-build-and-push (push) Successful in 2m22s
All checks were successful
Build and Push Image / docker-build-and-push (push) Successful in 2m22s
This commit is contained in:
@@ -507,7 +507,8 @@ export function runMigrations(db: Database): void {
|
||||
website TEXT,
|
||||
address TEXT,
|
||||
contact_number TEXT,
|
||||
items_json TEXT
|
||||
items_json TEXT,
|
||||
is_optional INTEGER NOT NULL DEFAULT 0
|
||||
)
|
||||
`);
|
||||
db.run(`
|
||||
@@ -515,13 +516,13 @@ export function runMigrations(db: Database): void {
|
||||
id, operator_tour_day_id, type, title, notes, position, created_at, updated_at,
|
||||
chain, address_line1, address_line2, city_name, country, country_code, postal_code,
|
||||
transport_kind, start_date, start_time, start_timezone, end_date, end_time, end_timezone,
|
||||
start_location, end_location
|
||||
start_location, end_location, is_optional
|
||||
)
|
||||
SELECT
|
||||
id, operator_tour_day_id, type, title, notes, position, created_at, updated_at,
|
||||
chain, address_line1, address_line2, city_name, country, country_code, postal_code,
|
||||
transport_kind, start_date, start_time, start_timezone, end_date, end_time, end_timezone,
|
||||
NULL as start_location, NULL as end_location
|
||||
NULL as start_location, NULL as end_location, 0 as is_optional
|
||||
FROM operator_tour_day_plans
|
||||
`);
|
||||
db.run('DROP TABLE operator_tour_day_plans');
|
||||
@@ -555,7 +556,8 @@ export function runMigrations(db: Database): void {
|
||||
'website TEXT',
|
||||
'address TEXT',
|
||||
'contact_number TEXT',
|
||||
'items_json TEXT'
|
||||
'items_json TEXT',
|
||||
'is_optional INTEGER NOT NULL DEFAULT 0'
|
||||
]) {
|
||||
try {
|
||||
db.run(`ALTER TABLE operator_tour_day_plans ADD COLUMN ${col}`);
|
||||
|
||||
Reference in New Issue
Block a user