0

I noticed that one of my columns had the wrong name so I changed it. Then I ran alembic upgrade head in the terminal in PyCharm and that didn't work so I dropped that table and another table that I had to drop so I could drop the table I made changes in. I dropped the tables in a sql query. I then tried alembic upgrade head again and that didn't create the tables I had dropped. How do I create the dropped tables?

1 Answers1

1

Alembic keeps the latest applied revision in alembic_version table and checks it before upgrading. You need to do a downgrade firstly and then upgrade.

How to do downgrade is described in this answer.

alex_noname
  • 26,459
  • 5
  • 69
  • 86