Pogchamp-company/alembic-postgresql-enum

Logging detected changes

Closed this issue · 1 comments

For example alembic prints:

INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
INFO  [alembic.autogenerate.compare] Detected added column 'example_table.enum_field'
INFO  [alembic.autogenerate.compare] Detected added column 'example_table.new_enum_field'
  Generating /home/rusty/PycharmProjects/FastapiTemplate/migrations/versions/2023-09-01_22-38_3d3691cf2f63_issue_example_with_new_column.py ...  done

Example from README.md now prints:

$ alembic revision -m "Readme example" --autogenerate
INFO  [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO  [alembic.runtime.migration] Will assume transactional DDL.
INFO  [alembic.autogenerate.compare] Detected added table 'example_table'
INFO  [alembic.alembic_postgresql_enum.add_create_type_false] create_type=False injected into 'myenum'
INFO  [alembic.alembic_postgresql_enum.enum_creation] Detected added enum 'myenum' with values ('one', 'two', 'three')
  Generating .../migrations/versions/2023-09-02_13-43_138f5f92d3d7_readme_example.py ...  done