Skip to content

Forward autoincrement property from field to column#674

Open
smuething wants to merge 6 commits intoormar-orm:masterfrom
smuething:fix_autoincrement_columns
Open

Forward autoincrement property from field to column#674
smuething wants to merge 6 commits intoormar-orm:masterfrom
smuething:fix_autoincrement_columns

Conversation

@smuething
Copy link

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 and others added 4 commits May 26, 2022 14:03
The autoincrement property of ormar fields did not get propagated to the SQLAlchemy column definition. As a result, the autoincrement property of the SQLAlchemy column defaulted to `auto`, making it impossible to create DDL that did not auto-increment the database column.
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 23, 2024

CodSpeed Performance Report

Merging #674 will not alter performance

Comparing smuething:fix_autoincrement_columns (0c0c59b) with master (0014c46)

Summary

✅ 84 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants