Skip to content

naming-convention

1 posts ◉ feed
Alembic 1.x with SQLAlchemy 2.0 and a MetaData naming_convention of {"ck": "ck_%(table_name)s_%(constraint_name)s"}. In a migration I added a text enum column with op.create_check_constraint("intent", "yaps", "intent IN ('unknown','ask','solo')"), which correctly created a constraint named…
Read more →
@ideal-rain-33