Migrated issue, originally created by Carl Meyer ()
I'm adding "ON DELETE CASCADE" to a foreign key constraint that was earlier created as part of a create_table migration, and realizing that this seems to require deleting and recreating the constraint. To delete the existing constraint (without a bunch of ugly and not-offline-compatible inspection code) requires that I previously named it explicitly. But I can't go back in time and change the initial create-table migration to name it explicitly.
Is there a good reason for autogen to not give constraints explicit reliable names by default?
该提问来源于开源项目:sqlalchemy/alembic