Skip to content

Commit

Permalink
upgrade drizzle
Browse files Browse the repository at this point in the history
  • Loading branch information
aabassiouni committed Sep 15, 2024
1 parent 58a3a68 commit 0f5e578
Show file tree
Hide file tree
Showing 6 changed files with 140 additions and 381 deletions.
16 changes: 0 additions & 16 deletions apps/web/drizzle.config.ts

This file was deleted.

4 changes: 2 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"clsx": "^2.0.0",
"csv": "^6.3.6",
"dotenv": "^16.3.1",
"drizzle-orm": "^0.28.6",
"drizzle-orm": "^0.33.0",
"embla-carousel-react": "8.0.0-rc17",
"framer-motion": "^11.2.6",
"isomorphic-dompurify": "^2.3.0",
Expand All @@ -70,7 +70,7 @@
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.4.17",
"drizzle-kit": "^0.19.13",
"drizzle-kit": "^0.24.2",
"pg": "^8.11.3",
"postcss": "^8.4.33",
"postgres": "^3.4.3",
Expand Down
4 changes: 2 additions & 2 deletions apps/workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"@entrybase/id": "workspace:^",
"@neondatabase/serverless": "^0.7.2",
"base-x": "^4.0.0",
"drizzle-orm": "^0.28.6",
"drizzle-orm": "^0.33.0",
"hono": "^3.12.7",
"typescript": "^5.3.3",
"zod": "^3.22.4"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240512.0",
"drizzle-kit": "^0.20.13",
"drizzle-kit": "^0.24.2",
"tsx": "^4.7.0",
"wrangler": "^3.57.0"
}
Expand Down
5 changes: 2 additions & 3 deletions internal/db/drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// for some reason, dotenv package is being weird
//@ts-ignore
import * as dotenv from "dotenv";
import type { Config } from "drizzle-kit";

Expand All @@ -8,9 +7,9 @@ dotenv.config({ path: ".env.local" });
export default {
schema: "./src/schema/index.ts",
out: "./drizzle/migrations",
driver: "pg",
dialect: "postgresql",
dbCredentials: {
connectionString: process.env.DATABASE_URL!,
url: process.env.DATABASE_URL!,
},
verbose: true,
} satisfies Config;
4 changes: 2 additions & 2 deletions internal/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"@neondatabase/serverless": "^0.6.0",
"@types/node": "^20.11.5",
"dotenv": "^16.3.1",
"drizzle-orm": "^0.28.6"
"drizzle-orm": "^0.33.0"
},
"devDependencies": {
"drizzle-kit": "^0.19.13",
"drizzle-kit": "^0.24.2",
"typescript": "^5.2.2"
},
"author": "",
Expand Down
Loading

0 comments on commit 0f5e578

Please sign in to comment.