alipowr
alipowr
DTDrizzle Team
Created by alipowr on 4/1/2024 in #help
drizzle-kit generate migration for pg is stuck at: Reading config file 'drizzle.config.ts'
ok, i found that its Deno issue https://github.com/denoland/deno/issues/19826
3 replies
DTDrizzle Team
Created by alipowr on 4/1/2024 in #help
drizzle-kit generate migration for pg is stuck at: Reading config file 'drizzle.config.ts'
my drizzle.config.ts is
console.log("in drizzle config")
import type { Config } from 'npm:drizzle-kit';
import { PS_HOST, PS_USER, PS_PASS, PS_PORT, PS_DB } from "./db/db.ts";

export default {
schema: './db/schema.ts',
out: './drizzle',
driver: 'pg', // 'pg' | 'mysql2' | 'better-sqlite' | 'libsql' | 'turso'
dbCredentials: {
host: PS_HOST,
user: PS_USER,
password: PS_PASS,
port: PS_PORT,
database: PS_DB,
},
} satisfies Config;
console.log("in drizzle config")
import type { Config } from 'npm:drizzle-kit';
import { PS_HOST, PS_USER, PS_PASS, PS_PORT, PS_DB } from "./db/db.ts";

export default {
schema: './db/schema.ts',
out: './drizzle',
driver: 'pg', // 'pg' | 'mysql2' | 'better-sqlite' | 'libsql' | 'turso'
dbCredentials: {
host: PS_HOST,
user: PS_USER,
password: PS_PASS,
port: PS_PORT,
database: PS_DB,
},
} satisfies Config;
3 replies