adrtivv
adrtivv
DTDrizzle Team
Created by Acro on 3/21/2024 in #help
When to use what? drizzle-kit push:* Vs. having a file with drizzle migrate client?
any difference between drizzle kit migrate command and migrate() function if both are executed against the same migration files?
6 replies
DTDrizzle Team
Created by adrtivv on 11/27/2023 in #help
drizzle studio blank screen
11 replies
DTDrizzle Team
Created by adrtivv on 11/27/2023 in #help
drizzle studio blank screen
11 replies
DTDrizzle Team
Created by adrtivv on 11/27/2023 in #help
drizzle studio blank screen
postgresql://username:password@localhost:5432/postgres_db?search_path=schemaOne
postgresql://username:password@localhost:5432/postgres_db?search_path=schemaOne
11 replies
DTDrizzle Team
Created by adrtivv on 11/27/2023 in #help
drizzle studio blank screen
I'm using a local database btw, booted up in a podman container and yeah it does work with the drizzle client so I don't think the config has any issue.
11 replies
DTDrizzle Team
Created by adrtivv on 11/27/2023 in #help
drizzle studio blank screen
// dotenv required for `drizzle-studio push:pg`
import dotenv from "dotenv";
dotenv.config();
import type { Config } from "drizzle-kit";

export default {
driver: "pg",
dbCredentials: {
connectionString: process.env.DATABASE_URL!,
},
out: "./migrations",
schema: "./src/db/schema.ts",
// this field needed when using `drizzle-studio push:pg` dunno why
schemaFilter: "schemaOne",
} satisfies Config;
// dotenv required for `drizzle-studio push:pg`
import dotenv from "dotenv";
dotenv.config();
import type { Config } from "drizzle-kit";

export default {
driver: "pg",
dbCredentials: {
connectionString: process.env.DATABASE_URL!,
},
out: "./migrations",
schema: "./src/db/schema.ts",
// this field needed when using `drizzle-studio push:pg` dunno why
schemaFilter: "schemaOne",
} satisfies Config;
11 replies