From 10fecf4e804671359afb3ce56a365cbfcb9ca357 Mon Sep 17 00:00:00 2001 From: Maurice Date: Wed, 2 Dec 2026 09:59:29 +0100 Subject: [PATCH] fix(ci): document the exact migration filter The metadata substring filter only finds candidates. Exact timezone comparison in the migration ensures SQLite and PostgreSQL update the same records. --- .../Migration20200101046640_bahrain_flights_keep_bahrain_time.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/db/migrations/Migration20200101046640_bahrain_flights_keep_bahrain_time.ts b/server/src/db/migrations/Migration20200101046640_bahrain_flights_keep_bahrain_time.ts index b61220eb9..4e67812e7 100644 --- a/server/src/db/migrations/Migration20200101046640_bahrain_flights_keep_bahrain_time.ts +++ b/server/src/db/migrations/Migration20200101046640_bahrain_flights_keep_bahrain_time.ts @@ -55,6 +55,7 @@ export class Migration20200101046640_bahrain_flights_keep_bahrain_time extends M [BAHRAIN_ZONE, WRONG_ZONE, ...BAHRAIN_CODES], ); const rows = (await this.execute( + // like-exact: only the exact stored time zone is changed, as checked by correctedMetadata. "SELECT id, metadata FROM reservations WHERE type = 'flight' AND metadata LIKE ?", [`%${WRONG_ZONE}%`], )) as { id: number; metadata: string }[];