-
Notifications
You must be signed in to change notification settings - Fork 2
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
migrate from mysql to postgreSQL #54
Conversation
houssembaltii
commented
Aug 22, 2024
•
edited
Loading
edited
- migrate database from planetScale mysql to neon postgreSQL
- change schema configuration
- upgrade next-auth version in order to be compatible with node 20 (had problem of compatiblity with next-auth v4.17.0 and nodejs 20)
- tested those changes locally and the database , everything works
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
prisma/schema.prisma
Outdated
@@fulltext([name]) | ||
@@fulltext([description]) | ||
@@fulltext([name, description]) | ||
@@index([name]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you run the prisma format
command 🙏🏼
prisma/schema.prisma
Outdated
issue Issue @relation(fields: [issueId], references: [id], onUpdate: NoAction) | ||
issue Issue @relation(fields: [issueId], references: [id], onUpdate:Restrict) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't find any information to explain this change, why it's needed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when i started changing the configuration , vsCode said it was an error and i should change it .
now NoAction exists , it was weird .