Issues with Postgres DB
I don't really understand why I am not seeing any tables in my DB.
Seeding works, but the database stays empty. Any idea what could fix this?
15 Replies
Project ID:
3b4c3c14-6b11-4e8a-8f52-bb11ff2f2554
3b4c3c14-6b11-4e8a-8f52-bb11ff2f2554
you are probably still just seeding your sqlite database
how would i know which db i am seeding
check your local sqlite database
that looks the same
delete it, then run the commands again, if it comes back, you are seeding your sqlite database
also, i know the cli tells you to do
railway up
but dontI deleted the migrations folder and the db instance folder.
Deleted all pycache files from backend
railway run flask db init
-- migrations folder is being created, but not database instance
railway run flask db migrate
railway run flask db upgrade
gives an error:Postgres DB looks like this now:
(psycopg2.errors.DuplicateTable) relation "users" already existsplease fix this error before proceeding
this is where i am stuck
this error is recurring
i'm gonna drop my schema and rerun all commands in hope that fixes it
i think you should fix the problem, then your error will go away, running the same commands all day long isnt going to get you very far
i guess i don't know how to tackle this
me neither