coaster icon indicating copy to clipboard operation
coaster copied to clipboard

Supply naming_convention to SQLAlchemy metadata

Open jace opened this issue 8 years ago • 1 comments

Since 0.9.2, SQLAlchemy has supported an explicit naming convention for foreign keys, indexes and constraints. Alembic also supports reading and honouring this naming convention.

Coaster should supply a naming convention that matches our conventions so far (and not the ones recommended in the Alembic manual) to ensure our migrations don't break in future on new database deployments.

jace avatar Aug 25 '16 06:08 jace

As a counterpoint, we should adopt the recommended conventions and write migrations across all apps to rename the existing constraints.

jace avatar Oct 14 '16 17:10 jace