Files
tcg-collectors-server/migrations/001_create-image-table.js
T
joseph.nelson4456 3eb3b39b79
Build and Push Image / build-and-push (push) Failing after 1m34s
fixed comma issue
2026-05-13 22:48:06 -07:00

18 lines
337 B
JavaScript

export const up = (pgm) => {
pgm.sql(`
CREATE TABLE image (
id UUID PRIMARY KEY,
file TEXT,
image BYTEA,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW()
);
`)
}
export const down = (pgm) => {
pgm.sql(`
DROP TABLE image;
`)
}