updated migrations
Build and Push Image / build-and-push (push) Successful in 1m43s

This commit is contained in:
2026-05-12 22:28:51 -07:00
parent b33ae3d9a7
commit 0601c41f46
5 changed files with 68 additions and 6 deletions
+27
View File
@@ -0,0 +1,27 @@
export default {
up: async (pool) => {
try {
await pool.query(
`
CREATE TABLE role (
id UUID PRIMARY KEY,
name TEXT UNIQUE NOT NULL
);
`
)
} catch (error) {
console.error('Error creating role table:', error)
throw error
}
},
down: async (pool) => {
try {
await pool.query(`
DROP TABLE role;
`)
} catch (error) {
console.error('Error dropping role table:', error)
throw error
}
},
}