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
Vercel Postgres: The database schema is not empty on clean install #19390
Comments
I too have this same exact issue. Using next-auth with prisma as a db adapter. As a workaround I updated my startup script to include |
Hi @mastoj, Did you create a Vercel project using one of their template?
Could you check what is in the database? You could truncate/drop the existing tables if the data is not important to avoid baselining that database. For example:
|
I did create a blank db, not using a template since I already had a project. I have also tried to drop all tables, but the issue is still there. |
@mastoj Thanks for the info, we'll try to reproduce this. Vercel Postgres is still very new, from earlier this month, though there is no reason it shouldn't work, so we want to check why this is happening. |
I also didn't use a provided template. Just created the datastore and connected the db to the vercel app. |
This is a duplicate of #19234, you are just luckier in how it present:
Instead of deleting data, in your case, you seem to get an error message.
Seems we have to prioritize this issue soon: #16628 |
My issues is when I follow the settings I get from vercel. From what I can see there are two different connection strings in use, so not sure what to do here. |
Thanks what happens when you just remove the To use |
adding |
Hey everyone, Vercel Postgres now supports Prisma Migrate better, so you can remove the Can you please let me know if this works for you? Then we can push to get the documentation updated accordingly. Thanks! |
This should now be fixed, and |
Bug description
I'm using vercel postgres and try to setup prisma for the first time. For some reason I get the error "The database schema is not empty". There is a discussion on it here: #18973, but I do think it is a bug since I can't get by it no matter what I try.
Here is a screen of what I experience:
How to reproduce
Expected behavior
I expect the last step to create an empty migration that I can modify.
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: