Skip to content

Commit

Permalink
Update drizzle config
Browse files Browse the repository at this point in the history
  • Loading branch information
gcjbr committed May 10, 2024
1 parent 4de1927 commit 262887f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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',

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

0 comments on commit 262887f

Please sign in to comment.