ci: run migrations against Postgres service container in CI #64
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue