Use a volume for migrations
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
--------------------------------------------------------------------------------
|
||||
-- Up
|
||||
--------------------------------------------------------------------------------
|
||||
ALTER TABLE settings ADD appeals_channel_id TEXT;
|
||||
|
||||
CREATE TABLE appeals (
|
||||
id INTEGER PRIMARY KEY,
|
||||
message_id TEXT NOT NULL
|
||||
);
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
-- Down
|
||||
--------------------------------------------------------------------------------
|
||||
ALTER TABLE settings DROP COLUMN appeals_channel_id;
|
||||
|
||||
DROP TABLE appeals;
|
||||
@@ -142,7 +142,7 @@ export class Database {
|
||||
console.log('Starting database migrations');
|
||||
|
||||
await Database.db.migrate({
|
||||
migrationsPath: path.join(__dirname, '..', 'migrations')
|
||||
migrationsPath: path.join(__dirname, '..', '..', 'migrations')
|
||||
});
|
||||
|
||||
console.log('Database migrations ran');
|
||||
|
||||
Reference in New Issue
Block a user