Use a volume for migrations

This commit is contained in:
Tarrgon
2026-06-02 17:18:13 -04:00
parent ea37046d30
commit 2c0ef019b8
3 changed files with 2 additions and 1 deletions
-16
View File
@@ -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;
+1 -1
View File
@@ -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');