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.
This commit is contained in:
Maurice
2026-12-02 09:59:29 +01:00
parent 12483f618f
commit 10fecf4e80
@@ -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 }[];