Change8

rel_1_18_2

📦 alembicView on GitHub →
2 features🐛 1 fixes🔧 4 symbols

Summary

This release enhances `Operations.add_column()` by honoring the `primary_key` parameter and introducing the `inline_references` option for foreign key rendering. A typing bug affecting server default parameters in `AlterColumnOp` was also resolved.

✨ New Features

  • The `primary_key` parameter on `Column` is now honored when `Operations.add_column()` is used, emitting the "PRIMARY KEY" keyword inline within the ADD COLUMN directive.
  • Added `inline_references` parameter to `Operations.add_column()` to allow rendering of `REFERENCES` clauses inline within the `ADD COLUMN` directive, supported by PostgreSQL, Oracle, MySQL 5.7+, and MariaDB 10.5+.

🐛 Bug Fixes

  • Fixed typing issue where `AlterColumnOp.server_default` and `AlterColumnOp.existing_server_default` parameters failed to accommodate common SQLAlchemy SQL constructs like `null()` and `text()`.

Affected Symbols