Files
tcg-collectors-server/migrations/004_create-location-table.js
T
joseph.nelson4456 e12bb7834d
Build and Push Image / build-and-push (push) Failing after 1m39s
found an issue with missing comma for migrations
2026-05-13 22:52:18 -07:00

17 lines
350 B
JavaScript

export const up = (pgm) => {
pgm.sql(`
CREATE TABLE location (
id UUID PRIMARY KEY,
name TEXT UNIQUE NOT NULL,
created_at TIMESTAMP DEFAULT NOW(),
updated_at TIMESTAMP DEFAULT NOW()
);
`)
}
export const down = (pgm) => {
pgm.sql(`
DROP TABLE location;
`)
}