fixed migration issues
Build and Push Image / build-and-push (push) Failing after 1m33s

This commit is contained in:
2026-05-13 22:44:40 -07:00
parent 7dc66697ea
commit 4c2851cee5
7 changed files with 23 additions and 9 deletions
+18
View File
@@ -0,0 +1,18 @@
export const up = (pgm) => {
pgm.sql(`
CREATE TABLE collection (
id UUID PRIMARY KEY,
name TEXT,
image_id UUID,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW(),
FOREIGN KEY (image_id) REFERENCES image(id)
);
`)
}
export const down = (pgm) => {
pgm.sql(`
DROP TABLE collection;
`)
}