mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-02 17:26:24 +00:00
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:
@@ -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 }[];
|
||||
|
||||
Reference in New Issue
Block a user