1
--autogenerate
플래그로 자동 작업 마이그레이션을 수행하려고합니다.Alembic은 변경 사항을 감지하지만 --autogenerate를 사용하여 빈 마이그레이션을 생성합니다.
INFO [alembic.migration] Context impl MySQLImpl.
INFO [alembic.migration] Will assume non-transactional DDL.
INFO [alembic.autogenerate] Detected removed table u'some_table'
INFO [alembic.autogenerate] Detected NULL on column 'table_a.column_a'
INFO [alembic.autogenerate] Detected added column 'table_b.column_b'
.......
하지만, upgrade
및 downgrade
모두 생성되는 마이그레이션 파일을 볼 때 단순히 pass
말 : 나는 alembic -n mydbname --autogenerate -m "my message"
을 실행하면
내가 좋아하는 뭔가를 얻을.
무슨 일 이니?!