Z
Z
zlodiak2019-05-16 15:59:04
Python
zlodiak, 2019-05-16 15:59:04

What is stored in the alembic_version table?

Please help me understand what role the alembic_version table plays.
I created a model and based on it using flask db migrate / flask db upgrade created a table in the database. Then I removed this table from the database and tried to create it again via flask db migrate/flask db upgrade. But the table was not created.
Again, I was only able to create the table after dropping the alembic_version table. I don't understand how alembic_version remembers that such a table has already been created. And in general, why does it not allow to re-create the table

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-05-16
@sergey-gornostaev

It stores the history of migrations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question