Skip to content

All primary keys altered in migration after upgrading to 8.0.1 #33372

@benjaminoerskov

Description

@benjaminoerskov

After upgrading to 8.0.1, my migrations wants to update all my primary keys like so:

ALTER TABLE `UserPerformanceSettings` MODIFY COLUMN `Id` bigint NOT NULL AUTO_INCREMENT;

The same is true for version 8.0.2. However if I downgrade to version 8.0.0, I no longer get these extra Alters.

Note: I have not changed anything other than the version, and my primary keys are already set like the migration want to change.

Include provider and version information

EF Core version: 8.0.1
Database provider: Pomelo.EntityFrameworkCore.MySql Version="8.0.1
Target framework: NET8.0
Operating system:
IDE: (e.g. Visual Studio 2022 17.8.7)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions