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
Next Next commit
Update drizzle config
  • Loading branch information
gcjbr committed May 10, 2024
commit 262887fbd3ed2c36173b8b4ea7b34802dda69af6
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 @@

export default {
schema: "./src/server/db/schema.ts",
driver: "pg",
dialect: 'postgresql',

Check failure on line 7 in cli/template/extras/config/drizzle-config-postgres.ts

View workflow job for this annotation

GitHub Actions / Run ESLint

Replace `'postgresql'` with `"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