--autogenerate flag.
When I run alembic -n mydbname --autogenerate -m "my message" I get something like:
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'
.......
but then when I look at the migration file that is generated, upgrade and downgrade both simply say pass.
What's going on?!
--
You received this message because you are subscribed to the Google Groups "sqlalchemy-alembic" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy-alem...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
[cross@cross alembic-migrations]$ alembic -n db2 revision --autogenerate -m "added column a to table a" WARNI [env_py] db2 WARNI [env_py] db2 WARNI [env_py] MetaData(bind=None) INFO [alembic.migration] Context impl MySQLImpl. INFO [alembic.migration] Will assume non-transactional DDL. INFO [alembic.autogenerate] Detected removed table u'migrate_version' INFO [alembic.autogenerate] Detected NULL on column 'table_b.column_b' INFO [alembic.autogenerate] Detected added column 'table_a.column_a' INFO [alembic.autogenerate] Detected NOT NULL on column 'table_a.column_c' INFO [alembic.autogenerate] Detected removed column 'table_c.column_d' INFO [alembic.autogenerate] Detected removed column 'table_c.column_e' INFO [alembic.autogenerate] Detected removed column 'table_c.column_f' INFO [alembic.autogenerate] Detected removed column 'table_c.column_g' WARNI [env_py] I ran them migrations WARNI [env_py] I committed Generating /home/cross/reponame/alembic- migrations/db2/versions/5153fd93e1e2_added_column_a_.py...done
[cross@cross alembic-migrations]$ cat db2/versions/5153fd93e1e2_added_column_a_.py
"""added column_a to table_a
Revision ID: 5153fd93e1e2
Revises: None
Create Date: 2013-05-29 23:43:55.139871
"""
# revision identifiers, used by Alembic.
revision = '5153fd93e1e2'
down_revision = None
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade(engine_name):
eval("upgrade_%s" % engine_name)()
def downgrade(engine_name):
eval("downgrade_%s" % engine_name)()
def upgrade_db2():
pass
def downgrade_db2():
pass--
You received this message because you are subscribed to a topic in the Google Groups "sqlalchemy-alembic" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sqlalchemy-alembic/bsuQcV6KLO8/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to sqlalchemy-alem...@googlegroups.com.