diff --git a/Sources/App/Migrations/080/UpdateRepositoryAddForkedFrom2.swift b/Sources/App/Migrations/080/UpdateRepositoryResetForkedFrom.swift similarity index 95% rename from Sources/App/Migrations/080/UpdateRepositoryAddForkedFrom2.swift rename to Sources/App/Migrations/080/UpdateRepositoryResetForkedFrom.swift index 2e84c1e82..1ac0b761e 100644 --- a/Sources/App/Migrations/080/UpdateRepositoryAddForkedFrom2.swift +++ b/Sources/App/Migrations/080/UpdateRepositoryResetForkedFrom.swift @@ -16,7 +16,7 @@ import Fluent import SQLKit -struct UpdateRepositoryAddForkedFrom2: AsyncMigration { +struct UpdateRepositoryResetForkedFrom: AsyncMigration { func prepare(on database: Database) async throws { guard let db = database as? SQLDatabase else { fatalError("Database must be an SQLDatabase ('as? SQLDatabase' must succeed)") diff --git a/Sources/App/configure.swift b/Sources/App/configure.swift index 7784b038f..28cbd3fb6 100644 --- a/Sources/App/configure.swift +++ b/Sources/App/configure.swift @@ -337,8 +337,8 @@ public func configure(_ app: Application) async throws -> String { do { // Migration 079 - Add `forked_from` to `repositories` app.migrations.add(UpdateRepositoryAddForkedFrom()) } - do { // Migration 080 - Set`forkded_from` to NULL because of Fork model change in Repository - app.migrations.add(UpdateRepositoryAddForkedFrom2()) + do { // Migration 080 - Set`forked_from` to NULL because of Fork model change in Repository + app.migrations.add(UpdateRepositoryResetForkedFrom()) } app.asyncCommands.use(Analyze.Command(), as: "analyze")