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
+9 -15
View File
@@ -1,20 +1,14 @@
export default {
name: 'create_collection_table',
up: async () => {
const sql = `
export const up = (pgm) => {
pgm.sql(`
CREATE TABLE collection (
id UUID PRIMARY KEY,
name TEXT
);
`
await migrate.run([sql], pool)
console.log('Collection table created successfully!')
},
down: async () => {
const sql = `
DROP TABLE collection;
`
await migrate.run([sql], pool)
console.log('Collection table dropped successfully.')
},
`)
}
export const down = (pgm) => {
pgm.sql(`
DROP TABLE collection;
`)
}