Migrations config fix
This commit is contained in:
parent
0bd90dac76
commit
a068d10faa
@ -2,6 +2,7 @@ import type { PoolConfig } from "npm:@types/pg";
|
|||||||
import { getConfig } from "./cfg/config.ts";
|
import { getConfig } from "./cfg/config.ts";
|
||||||
import type { BotConfig, CompiledConfig } from "./cfg/config.ts";
|
import type { BotConfig, CompiledConfig } from "./cfg/config.ts";
|
||||||
import { BotMode } from "./cfg/bot.ts";
|
import { BotMode } from "./cfg/bot.ts";
|
||||||
|
import * as path from "jsr:@std/path";
|
||||||
|
|
||||||
const MIC_CHAT_ID = -1002438254268
|
const MIC_CHAT_ID = -1002438254268
|
||||||
const MR_ANDERSON_ID = 1843444763
|
const MR_ANDERSON_ID = 1843444763
|
||||||
@ -32,7 +33,10 @@ export const reloadConfig = (): CompiledConfig => {
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
pgPoolCfg, botCfg,
|
pgPoolCfg, botCfg,
|
||||||
|
migrationCfg: {
|
||||||
dropDb: cfg.drop_db,
|
dropDb: cfg.drop_db,
|
||||||
applyMigrations: cfg.apply_migrations
|
applyMigrations: cfg.apply_migrations,
|
||||||
|
migrationsPath: path.join(__dirname, "migrations"),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user