Skip to content

Conversation

lauxjpn
Copy link
Collaborator

@lauxjpn lauxjpn commented Mar 3, 2025

PR #1844 introduced a regression bug that can generate invalid SQL (a DEFAULT 0 clause for an AUTO_INCREMENT column).

We now make sure that we don't generate default values of any kind, when generating column definition SQL for an AUTO_INCREMENT column.

This fix will be backported to 8.0.

Fixes #1914

@lauxjpn lauxjpn added this to the 9.0.0-preview.4.efcore.9.0.0 milestone Mar 3, 2025
@lauxjpn lauxjpn self-assigned this Mar 3, 2025
@lauxjpn lauxjpn merged commit 23db204 into PomeloFoundation:main Mar 3, 2025
19 checks passed
@lauxjpn lauxjpn deleted the fix/issue1914 branch March 3, 2025 14:29
lauxjpn added a commit to lauxjpn/Pomelo.EntityFrameworkCore.MySql that referenced this pull request Mar 3, 2025
lauxjpn added a commit that referenced this pull request Mar 3, 2025
…umns (#1981)

* [BACKPORT] Don't generate `DEFAULT 0` clause for `AUTO_INCREMENT` columns. (#1980)

(cherry picked from commit 23db204)

* Slightly adjust baseline SQL for 8.0.
@lauxjpn lauxjpn modified the milestones: 9.0.0-preview.4.efcore.9.0.0, 9.0.0-rc.1.efcore.9.0.0 Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error adding integer auto-increment column with migration (since 8.0.1)
1 participant