fixed things to be more inline with how migrations work
Build and Push Image / build-and-push (push) Failing after 24s
Build and Push Image / build-and-push (push) Failing after 24s
This commit is contained in:
@@ -1,21 +1,15 @@
|
||||
export default {
|
||||
name: 'create_image_table',
|
||||
up: async () => {
|
||||
const sql = `
|
||||
export const up = (pgm) => {
|
||||
pgm.sql(`
|
||||
CREATE TABLE image (
|
||||
id UUID PRIMARY KEY,
|
||||
file TEXT,
|
||||
image BYTEA
|
||||
);
|
||||
`
|
||||
await migrate.run([sql], pool)
|
||||
console.log('Image table created successfully!')
|
||||
},
|
||||
down: async () => {
|
||||
const sql = `
|
||||
DROP TABLE image;
|
||||
`
|
||||
await migrate.run([sql], pool)
|
||||
console.log('Image table dropped successfully.')
|
||||
},
|
||||
`)
|
||||
}
|
||||
|
||||
export const down = (pgm) => {
|
||||
pgm.sql(`
|
||||
DROP TABLE image;
|
||||
`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user