SQLite 迁移链

This commit is contained in:
2026-08-11 15:08:52 +08:00 Unverified
parent 4edcf063bc
commit 34f62a6bed
@@ -3013,11 +3013,11 @@ public sealed class DevelopmentSqliteMigrator(
private static readonly string[] NotificationInboxIndexesStatements = private static readonly string[] NotificationInboxIndexesStatements =
[ [
"""DROP INDEX "IX_Notifications_UserId_IsRead";""", """DROP INDEX IF EXISTS "IX_Notifications_UserId_IsRead";""",
"""DROP INDEX "IX_Notifications_UserId_Category_CreatedAt";""", """DROP INDEX IF EXISTS "IX_Notifications_UserId_Category_CreatedAt";""",
"""CREATE INDEX "IX_Notifications_UserId_CreatedAt_Id" ON "Notifications" ("UserId", "CreatedAt", "Id");""", """CREATE INDEX IF NOT EXISTS "IX_Notifications_UserId_CreatedAt_Id" ON "Notifications" ("UserId", "CreatedAt", "Id");""",
"""CREATE INDEX "IX_Notifications_UserId_IsRead_CreatedAt_Id" ON "Notifications" ("UserId", "IsRead", "CreatedAt", "Id");""", """CREATE INDEX IF NOT EXISTS "IX_Notifications_UserId_IsRead_CreatedAt_Id" ON "Notifications" ("UserId", "IsRead", "CreatedAt", "Id");""",
"""CREATE INDEX "IX_Notifications_UserId_Category_CreatedAt_Id" ON "Notifications" ("UserId", "Category", "CreatedAt", "Id");""" """CREATE INDEX IF NOT EXISTS "IX_Notifications_UserId_Category_CreatedAt_Id" ON "Notifications" ("UserId", "Category", "CreatedAt", "Id");"""
]; ];
private static readonly string[] ExperimentCourseGradesStatements = private static readonly string[] ExperimentCourseGradesStatements =