b910733adc
Configure Drizzle to exclude the `user_sessions` table from schema introspection. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 77cfe984-2c65-4152-bb7a-0df28274fe66 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 4e1b5887-b92a-4851-b4ff-a7278a110e95 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/c3c252e4-c83d-40ca-9fff-99a3ea60701e/77cfe984-2c65-4152-bb7a-0df28274fe66/YPEna1J Replit-Helium-Checkpoint-Created: true
16 lines
388 B
TypeScript
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"],
|
|
});
|