feat: migrate from SQLite to PostgreSQL and update database handling

This commit is contained in:
MythEclipse
2026-05-21 15:11:32 +07:00
parent 4a47855ad4
commit bfa91063ff
24 changed files with 252 additions and 181 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ import { defineConfig } from "drizzle-kit";
export default defineConfig({
schema: "./src/db/schema.ts",
out: "./src/db/migrations",
dialect: "sqlite",
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL ?? "file:./data/booster-role.sqlite"
url: process.env.DATABASE_URL ?? "postgresql://booster_role:booster_role@localhost:5432/booster_role"
}
});