DEV Community

Discussion on: Applying a Naming Convention to Constraints via SQLAlchemy & Alembic

Collapse
 
sonnk profile image
Nguyen Kim Son

There are some length limits for constraints, foreign keys, etc in MySQL (I'm not sure if this is the case for other database types) so in some extreme case, we might need to choose the constraint name explicitly.