Skip to content

Running MigrateDefaultAspNetIdentityToAdminUiSchema.sql drops a foreign key constraint #1

@hallonapl

Description

@hallonapl

The foreign key contstraint between AspNetUserLogins and AspNetUsers disappears after running the script.
The issue seems to be that the constraint is added to the wrong table:
"ALTER TABLE [dbo].[AspNetUserRoles] ADD CONSTRAINT [FK_AspNetUserLogins_AspNetUsers_UserId] FOREIGN KEY (UserId) REFERENCES [dbo].[AspNetUsers] ([Id])]"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions