ci: run migrations against Postgres service container in CI #64

Merged
varutasu merged 3 commits from chore/wire-migrate-into-ci into main 2026-06-02 12:01:19 -04:00
Showing only changes of commit b79e9456b6 - Show all commits

View file

@ -13,6 +13,9 @@ export const shorthands = undefined;
*/ */
export const up = (pgm) => { export const up = (pgm) => {
pgm.sql(` pgm.sql(`
ALTER TABLE collections
ADD COLUMN IF NOT EXISTS is_system_collection BOOLEAN DEFAULT false;
UPDATE collections UPDATE collections
SET description = 'Automatically syncs with My Collection. This list cannot be deleted or made public.' SET description = 'Automatically syncs with My Collection. This list cannot be deleted or made public.'
WHERE is_system_collection = true WHERE is_system_collection = true