Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update drizzle config to be up to date with the latest version #1881

Merged
merged 13 commits into from
May 10, 2024
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@types/fs-extra": "^11.0.4",
"@types/gradient-string": "^1.1.5",
"@types/node": "^20.11.20",
"drizzle-kit": "^0.20.14",
"drizzle-kit": "^0.21.0",
"drizzle-orm": "^0.29.4",
"mysql2": "^3.9.1",
"next": "^14.2.1",
Expand Down
2 changes: 1 addition & 1 deletion cli/src/installers/dependencyVersionMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const dependencyVersionMap = {

// Drizzle
"drizzle-orm": "^0.29.4",
"drizzle-kit": "^0.20.14",
"drizzle-kit": "^0.21.0",
"eslint-plugin-drizzle": "^0.2.3",
mysql2: "^3.9.1",
"@planetscale/database": "^1.16.0",
Expand Down
4 changes: 2 additions & 2 deletions cli/template/extras/config/drizzle-config-mysql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { env } from "~/env";

export default {
schema: "./src/server/db/schema.ts",
driver: "mysql2",
driver: "mysql",
dbCredentials: {
uri: env.DATABASE_URL,
url: env.DATABASE_URL,
},
tablesFilter: ["project1_*"],
} satisfies Config;
4 changes: 2 additions & 2 deletions cli/template/extras/config/drizzle-config-postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import { env } from "~/env";

export default {
schema: "./src/server/db/schema.ts",
driver: "pg",
dialect: "postgresql",
dbCredentials: {
connectionString: env.DATABASE_URL,
url: env.DATABASE_URL,
},
tablesFilter: ["project1_*"],
} satisfies Config;
2 changes: 1 addition & 1 deletion cli/template/extras/config/drizzle-config-sqlite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { env } from "~/env";

export default {
schema: "./src/server/db/schema.ts",
driver: "libsql",
driver: "sqlite",
dbCredentials: {
url: env.DATABASE_URL,
},
Expand Down
Loading
Loading