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

migrate from mysql to postgreSQL #54

Merged
merged 7 commits into from
Aug 23, 2024
Merged

Conversation

houssembaltii
Copy link
Contributor

@houssembaltii houssembaltii commented Aug 22, 2024

  • 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

Copy link

vercel bot commented Aug 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
start-repo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 23, 2024 7:34am

@@fulltext([name])
@@fulltext([description])
@@fulltext([name, description])
@@index([name])
Copy link
Member

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 🙏🏼

Comment on lines 63 to 62
issue Issue @relation(fields: [issueId], references: [id], onUpdate: NoAction)
issue Issue @relation(fields: [issueId], references: [id], onUpdate:Restrict)
Copy link
Member

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 ?

Copy link
Contributor Author

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 .

@houssembaltii houssembaltii merged commit 9607043 into main Aug 23, 2024
5 checks passed
@houssembaltii houssembaltii deleted the migrate-mysql-to-postgresql branch August 23, 2024 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants