rel_1_18_4
Breaking Changes📦 alembicView on GitHub →
⚠ 1 breaking🐛 1 fixes🔧 5 symbols
Summary
This patch reverts the automatic inline rendering of PRIMARY KEY constraints in `Operations.add_column()` introduced in 1.18.2, making this behavior explicitly opt-in via the new `inline_primary_key` parameter.
⚠️ Breaking Changes
- The automatic rendering of the "PRIMARY KEY" keyword inline when adding a Column with `primary_key=True` via `Operations.add_column()` has been reverted. Previously added in 1.18.2, this behavior is now opt-in.
Migration Steps
- To restore the behavior of rendering PRIMARY KEY inline when using `Operations.add_column()` with a `Column(..., primary_key=True)`, set the new parameter `inline_primary_key=True` on the operation call.
🐛 Bug Fixes
- Reverted the automatic inline rendering of "PRIMARY KEY" in `Operations.add_column()` for columns where `primary_key=True`, restoring compatibility with rendering PostgreSQL SERIAL columns and allowing separate primary key constraints.