Skip to content

Commit

Permalink
feat: help me (drizzle cfg setup)
Browse files Browse the repository at this point in the history
  • Loading branch information
dromzeh committed Aug 5, 2023
1 parent 61829db commit 7cb8704
Show file tree
Hide file tree
Showing 24 changed files with 2,759 additions and 232 deletions.
13 changes: 13 additions & 0 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import "dotenv/config";

import type { Config } from "drizzle-kit";

export default {
out: "./src/db/migrations",
schema: "./src/db/schema.ts",
breakpoints: true,
driver: "mysql2",
dbCredentials: {
connectionString: process.env.DATABASE_URL!,
},
} satisfies Config;
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
"lint": "eslint . --ext .ts",
"prettier:check": "prettier --check .",
"typecheck": "tsc --noEmit",
"prisma:generate": "prisma generate",
"prisma:push": "prisma db push"
"prisma:generate": "npx prisma generate --accelerate",
"prisma:push": "npx prisma db push"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20230710.1",
"@types/node": "^20.4.8",
"eslint": "^8.45.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-json": "^3.1.0",
Expand All @@ -22,13 +23,18 @@
"private": true,
"dependencies": {
"@aws-sdk/client-s3": "^3.382.0",
"@lucia-auth/adapter-mysql": "^2.0.0",
"@lucia-auth/adapter-prisma": "^3.0.0",
"@planetscale/database": "^1.8.0",
"@prisma/client": "^5.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"dotenv": "^16.3.1",
"drizzle-kit": "^0.19.12",
"drizzle-orm": "^0.27.2",
"hono": "^3.3.4",
"itty-router": "^4.0.14",
"lucia": "^2.0.0",
"mysql2": "^3.6.0",
"prettier": "^3.0.0",
"prisma": "^5.1.0",
"render2": "^1.2.1",
Expand Down
Loading

0 comments on commit 7cb8704

Please sign in to comment.