fixed naming of tables to be plural and fixed order of migration execution
Build and Push Image / build-and-push (push) Successful in 1m32s
Build and Push Image / build-and-push (push) Successful in 1m32s
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
export const up = (pgm) => {
|
||||
pgm.sql(`
|
||||
CREATE TABLE collection (
|
||||
CREATE TABLE collections (
|
||||
id UUID PRIMARY KEY,
|
||||
name TEXT,
|
||||
image_id UUID,
|
||||
created_at TIMESTAMP DEFAULT NOW(),
|
||||
updated_at TIMESTAMP DEFAULT NOW(),
|
||||
FOREIGN KEY (image_id) REFERENCES image(id)
|
||||
FOREIGN KEY (image_id) REFERENCES images(id)
|
||||
);
|
||||
`)
|
||||
}
|
||||
|
||||
export const down = (pgm) => {
|
||||
pgm.sql(`
|
||||
DROP TABLE collection;
|
||||
DROP TABLE collections;
|
||||
`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user