Git history was lost when the previous Gitea instance was wiped and reinstalled due to an unresolved corruption bug — this commit is the last known-good file content, exported before the reinstall. Prior commit history is not recoverable through this path.
14 lines
341 B
TypeScript
14 lines
341 B
TypeScript
import { defineConfig } from "drizzle-kit";
|
|
import path from "node:path";
|
|
|
|
const dataDir = process.env.DATA_DIR ?? path.join(process.cwd(), "data");
|
|
|
|
export default defineConfig({
|
|
out: "./src/lib/db/migrations",
|
|
schema: "./src/lib/db/schema.ts",
|
|
dialect: "sqlite",
|
|
dbCredentials: {
|
|
url: path.join(dataDir, "db.sqlite"),
|
|
},
|
|
});
|