Files
TX/lib/db/drizzle.config.ts
Riyadh 732cb379ee Prevent database synchronization issues by ignoring specific tables
Configure Drizzle to exclude the `user_sessions` table from schema introspection.
2026-04-21 09:53:06 +00:00

16 lines
388 B
TypeScript

import { defineConfig } from "drizzle-kit";
import path from "path";
if (!process.env.DATABASE_URL) {
throw new Error("DATABASE_URL, ensure the database is provisioned");
}
export default defineConfig({
schema: path.join(__dirname, "./src/schema/index.ts"),
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL,
},
tablesFilter: ["!user_sessions"],
});