fixed things to be more inline with how migrations work
Build and Push Image / build-and-push (push) Failing after 24s

This commit is contained in:
2026-05-12 23:27:49 -07:00
parent 0d146bda6b
commit 569a41f053
11 changed files with 54 additions and 185 deletions
+6 -20
View File
@@ -1,8 +1,5 @@
export default {
up: async (pool) => {
try {
await pool.query(
`
export const up = (pgm) => {
pgm.sql(`
CREATE TABLE set (
id UUID PRIMARY KEY,
collection_id UUID NOT NULL,
@@ -13,22 +10,11 @@ export default {
FOREIGN KEY (collection_id) REFERENCES collection(id),
FOREIGN KEY (location_id) REFERENCES location(id)
);
`
)
} catch (error) {
console.error('Error creating set table:', error)
throw error
}
},
`)
}
down: async (pool) => {
try {
await pool.query(`
export const down = (pgm) => {
pgm.sql(`
DROP TABLE set;
`)
} catch (error) {
console.error('Error dropping set table:', error)
throw error
}
},
}