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

refactor: upgrade drizzle-orm and update the schema #45

Merged
merged 7 commits into from
Nov 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions drizzle.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default defineConfig({
schema: "./src/config/db/schema.mts",
out: "./drizzle",
dialect: "postgresql",
casing: "snake_case",
dbCredentials: {
url: DB_URL,
},
Expand Down
2 changes: 1 addition & 1 deletion drizzle/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"breakpoints": true
}
]
}
}
16 changes: 9 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,21 @@
"build:code": "tsc && tsc-alias",
"build": "pnpm run build:kill-dist && pnpm run build:code",
"postbuild": "node postbuild.mjs",
"db:explorer": "drizzle-kit studio",
"db:migrate-generate": "drizzle-kit generate",
"db:migrate-run": "drizzle-kit migrate"
"db:studio": "drizzle-kit studio",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:check": "drizzle-kit check",
"db:up": "drizzle-kit up"
},
"devDependencies": {
"@types/node": "^20.14.8",
"@types/pg": "^8.11.10",
"@typescript-eslint/eslint-plugin": "^6.18.0",
"@typescript-eslint/parser": "^6.18.0",
"drizzle-kit": "^0.22.8",
"drizzle-kit": "^0.27.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.2",
"pg": "^8.12.0",
"prettier": "^3.3.2",
"rimraf": "^5.0.7",
"tsc-alias": "^1.8.10",
Expand All @@ -48,11 +50,11 @@
"@scalar/hono-api-reference": "^0.5.92",
"arctic": "^1.9.1",
"dotenv": "^16.4.5",
"drizzle-orm": "^0.31.2",
"drizzle-orm": "^0.36.0",
"hono": "^4.4.11",
"hono-rate-limiter": "^0.4.0",
"lucia": "^3.2.0",
"postgres": "^3.4.4",
"pg": "^8.13.1",
"zod": "^3.23.8"
}
}
Loading