refactor(db): migrate Identity schema
Complete schema ownership by moving all ASP.NET Identity tables to an additive provider-aware migration. Preserve credentials, security state, preferences, roles, claims, external logins, tokens, indexes, and cascades.
This commit is contained in:
@@ -15,6 +15,13 @@ internal static class StartupSchemaOwnership
|
||||
"AiWorkspaceNotes",
|
||||
"AiInteractions",
|
||||
"ApplicationChecklistItems",
|
||||
"AspNetRoleClaims",
|
||||
"AspNetRoles",
|
||||
"AspNetUserClaims",
|
||||
"AspNetUserLogins",
|
||||
"AspNetUserRoles",
|
||||
"AspNetUsers",
|
||||
"AspNetUserTokens",
|
||||
"Attachments",
|
||||
"CareerCertifications",
|
||||
"CareerEducations",
|
||||
@@ -53,19 +60,10 @@ internal static class StartupSchemaOwnership
|
||||
"UserSessions",
|
||||
};
|
||||
|
||||
internal static readonly IReadOnlySet<string> ReconcilerOwnedTables = new HashSet<string>(StringComparer.Ordinal)
|
||||
{
|
||||
"AspNetRoleClaims",
|
||||
"AspNetRoles",
|
||||
"AspNetUserClaims",
|
||||
"AspNetUserLogins",
|
||||
"AspNetUserRoles",
|
||||
"AspNetUsers",
|
||||
"AspNetUserTokens",
|
||||
};
|
||||
internal static readonly IReadOnlySet<string> ReconcilerOwnedTables = new HashSet<string>(StringComparer.Ordinal);
|
||||
|
||||
// Historical migrations contain guarded compatibility bootstraps for these tables so direct
|
||||
// EF tooling can traverse the chain. Their current creation owner remains the reconciler.
|
||||
// EF tooling can traverse the chain. The later adoption migration is the current owner.
|
||||
internal static readonly IReadOnlySet<string> MigrationCompatibilityBootstrapTables =
|
||||
new HashSet<string>(StringComparer.Ordinal) { "AspNetUsers" };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user