Files
tcg-collectors-server/migrations/003_create-item-table.js
T
joseph.nelson4456 569a41f053
Build and Push Image / build-and-push (push) Failing after 24s
fixed things to be more inline with how migrations work
2026-05-12 23:27:49 -07:00

24 lines
561 B
JavaScript

export const up = (pgm) => {
pgm.sql(`
CREATE TABLE item (
id UUID PRIMARY KEY,
collection_id UUID,
image_id UUID,
productId TEXT,
name TEXT,
cleanName TEXT,
extCardText TEXTAREA,
marketPrice TEXT,
extRarity TEXT,
FOREIGN KEY (collection_id) REFERENCES collection(id),
FOREIGN KEY (image_id) REFERENCES image(id)
);
`)
}
export const down = (pgm) => {
pgm.sql(`
DROP TABLE item;
`)
}