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:
@@ -0,0 +1,16 @@
|
||||
export const up = (pgm) => {
|
||||
pgm.sql(`
|
||||
CREATE TABLE roles (
|
||||
id UUID PRIMARY KEY,
|
||||
name TEXT UNIQUE NOT NULL,
|
||||
created_at TIMESTAMP DEFAULT NOW(),
|
||||
updated_at TIMESTAMP DEFAULT NOW()
|
||||
);
|
||||
`)
|
||||
}
|
||||
|
||||
export const down = (pmg) => {
|
||||
pgm.sql(`
|
||||
DROP TABLE roles;
|
||||
`)
|
||||
}
|
||||
Reference in New Issue
Block a user