psychopg2 complaining that a table doesn't exist after migrations #1473
-
I am migrating a SqlAlchemy 1.3 project with Alembic 1.4.2 to SqlAlchemy 2.x and Alembic 1.13.1 I am running into a very confusing problem where when I run a I am trying to understand what to try to try and figure out the issue. More details are here: https://stackoverflow.com/questions/78481263/sqlalchemy-relation-does-not-exist-after-flask-migrate |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hi, Well first thing to try would be to verify it the table is indeed there using psql of another similar tool |
Beta Was this translation helpful? Give feedback.
So these are unit/integration tests that allow us to run the migration against a temporary DB to ensure it won't destroy our production one.
I have been able to use
psql
to log into the DB as it's running on localhost.Somehow I fixed this by replacing our env.py file with the one from flask-migrate's repo and removing any references to running the migrations as sql