ormar icon indicating copy to clipboard operation
ormar copied to clipboard

Forward autoincrement property from field to column

Open smuething opened this issue 2 years ago • 1 comments

The autoincrement property of ormar fields does not get propagated to the SQLAlchemy column definition. As a result, the autoincrement property of the SQLAlchemy column defaults to auto, making it impossible to create DDL that does not auto-increment the database column.

With this small patch, it becomes possible to create a table with a manually managed, integer-based PK.

smuething avatar May 26 '22 12:05 smuething