F
F
Friend2017-02-12 22:13:17
Python
Friend, 2017-02-12 22:13:17

How to migrate to Alembic?

I watched the tutorial here alembic.zzzcomputing.com/en/latest/tutorial.html
wrote alembic revision -m "create account table" and created a script for me, but the fields in it are empty, I still don't understand whether I should fill them in myself or there is a wonderful command who will do everything. The schema has a new table.
I use python, alembic, sqlalchemy, postgresql
Please tell me

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Friend, 2017-02-13
@Tiran_94

I had a problem that I could not generate the migration script automatically, I googled the error and this is what I found stackoverflow.com/questions/32311366/alembic-util-...
Can't locate revision identified by "some code"
Deleted from the base and everything was generated for me as it should by the command

alembic revision --autogenerate -m "create table new_ass"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question