-
Notifications
You must be signed in to change notification settings - Fork 151
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
PostgresError: relation "User" does not exist #50
Comments
I had the same problem and the code that reported the error was as follows:
error message:
The reason is not known at this time |
The reason is that the user table along with the db itself that you connect to are not pre-configured in any way. That is what i had to do and did in order to make it work. |
Is there a particular reason for them to have switched in the first place ? |
So is there now schema? Or migration scripts to run? |
Also I see they are using this code: |
If you just now created a project, run db:push and it should automatically create all of the entries to postgres. |
I created a new project using this as the template but ran into an issue when creating a new user. It throws the error
PostgresError: relation "User" does not exist
. I've tried different variants of environmental variable files but none of them work:My understanding is that it should be generating the User table on first user creation but it doesn't?
I've referenced the documentation here to no success:
https://vercel.com/docs/storage/vercel-postgres/quickstart
Am I missing something?
The text was updated successfully, but these errors were encountered: