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

Kazala Prisma -> Drizzle migration #130

Open
wants to merge 26 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
00f3188
Initial drizzle setup
Pelps12 Sep 22, 2023
6623961
Migrate homepage and event details page endpoint
Pelps12 Sep 22, 2023
ec880b4
Change default import on adapter
Pelps12 Sep 22, 2023
cacf6a1
Add drizzle to user ticket endpoint
Pelps12 Sep 22, 2023
e0e7492
Merge branch 'dev' into oluwapelps/asu-17-migrate-prisma-to-drizzle
Pelps12 Dec 16, 2023
437046c
Increase drizzle coverage
Pelps12 Jan 8, 2024
c30113b
Increase drizzle coverage
Pelps12 Jan 9, 2024
4113288
More drizzle migrations
Pelps12 Jan 14, 2024
fc9e5a3
Fix super admin procedure
Pelps12 Mar 5, 2024
6b0e5ef
Fix lock file
Pelps12 Mar 5, 2024
20d0681
Merge branch 'dev' into oluwapelps/asu-17-migrate-prisma-to-drizzle
jasonappah Aug 15, 2024
5410abb
chore: switch to drizzle postgres adapter
jasonappah Aug 15, 2024
46b1d86
chore: nextauth adapter + drizzle kit conf -> postgres
jasonappah Aug 15, 2024
73db55f
chore: remove pscale dep
jasonappah Aug 15, 2024
2478cd9
chore: replace mysql imports with pg
jasonappah Aug 15, 2024
fd4baf9
chore: drizzle schema fixes
jasonappah Aug 15, 2024
e4e9a7e
chore: generate migrations to sub dir
jasonappah Aug 15, 2024
11d8d31
fix: map fee holder field to correct col name
jasonappah Aug 15, 2024
fb52c08
chore: move introspect command to pg
jasonappah Aug 15, 2024
dfd7f80
chore: fix data types + field names
jasonappah Aug 15, 2024
b900b47
chore: use callback based pg client connection
jasonappah Aug 15, 2024
31dae3a
chore: use new drizzle-kit version
jasonappah Aug 16, 2024
c476aba
chore: delete drizzle migrations
jasonappah Aug 16, 2024
ff0f6b2
chore: match prisma types, fks, indexes in drizzle
jasonappah Aug 16, 2024
d43387a
Merge branch 'dev' into oluwapelps/asu-17-migrate-prisma-to-drizzle
jasonappah Aug 28, 2024
4403e3e
chore(events): reintrospect drizzle schema
jasonappah Aug 31, 2024
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
10 changes: 10 additions & 0 deletions apps/events/drizzle.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from "drizzle-kit"

export default defineConfig({
schema: './src/server/db/drizzle/schema/*.ts',
dialect: 'postgresql',
dbCredentials: {
url: process.env.DATABASE_URL ?? ''
},
out: './src/server/db/drizzle'
});
9 changes: 9 additions & 0 deletions apps/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@
"dev": "next dev",
"db:generate": "prisma generate",
"db:push": "prisma db push",
"introspect": "drizzle-kit introspect",
"lint": "next lint",
"lint:fix": "next lint --fix",
"start": "next start",
"email": "email dev --dir src/lib/emails"
},
"dependencies": {
"@auth/drizzle-adapter": "^0.3.1",
"@aws-sdk/client-s3": "^3.614.0",
"@fontsource/inter": "^4.5.15",
"@formkit/auto-animate": "^1.0.0-beta.3",
"@headlessui/react": "^1.7.19",
"@hookform/resolvers": "^3.9.0",
"@mapbox/search-js-react": "1.0.0-beta.21",
Expand Down Expand Up @@ -45,6 +48,8 @@
"clsx": "^2.1.1",
"daisyui": "^3.9.4",
"date-fns": "^2.30.0",
"drizzle-orm": "^0.33.0",
"formik": "^2.4.5",
"framer-motion": "^7.10.3",
"google-auth-library": "^9.11.0",
"html-react-parser": "^4.2.10",
Expand All @@ -58,6 +63,7 @@
"next-seo": "^5.15.0",
"next-usequerystate": "^1.17.4",
"nodemailer": "^6.9.14",
"pg": "^8.12.0",
"posthog-js": "^1.154.2",
"posthog-node": "^4.0.1",
"qrcode": "^1.5.3",
Expand All @@ -79,6 +85,7 @@
"tailwindcss-animate": "^1.0.7",
"trpc-panel": "^1.3.4",
"typewriter-effect": "^2.21.0",
"undici": "^5.25.1",
"uuid": "^9.0.1",
"vanilla-tilt": "^1.8.1",
"ws": "^8.18.0",
Expand All @@ -89,6 +96,7 @@
"@types/jsonwebtoken": "^9.0.6",
"@types/lodash": "^4.17.6",
"@types/node": "18.0.0",
"@types/pg": "^8.11.6",
"@types/qrcode": "^1.5.5",
"@types/react": "18.0.14",
"@types/react-csv": "^1.1.10",
Expand All @@ -98,6 +106,7 @@
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"autoprefixer": "^10.4.19",
"drizzle-kit": "^0.24.0",
"eslint": "8.22.0",
"eslint-config-next": "14.0.3",
"postcss": "^8.4.39",
Expand Down
Loading