Skip to content

Adding migration to fix mysql silently altering table entries on autoincrement#2192

Merged
s3inlc merged 1 commit into
devfrom
mysql-migration-fix
Jun 2, 2026
Merged

Adding migration to fix mysql silently altering table entries on autoincrement#2192
s3inlc merged 1 commit into
devfrom
mysql-migration-fix

Conversation

@s3inlc
Copy link
Copy Markdown
Member

@s3inlc s3inlc commented Jun 2, 2026

When altering a table and add autoincrement for a column in MySQL, it silently just generates new IDs for entries where the value is 0 (not NULL, but MySQL by default thinks on 0 it should also auto increment). This behavior caused the previous migration to update the Hashtype of MD5 from 0 to 100000.

This migration now fixes the entry in case this happened and sets it back to 0 (which is not conflicting with the autoincrement).

@s3inlc s3inlc merged commit 838c80d into dev Jun 2, 2026
5 checks passed
@s3inlc s3inlc deleted the mysql-migration-fix branch June 2, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants