Skip to content

Commit

Permalink
Resolve PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
supersonicbyte committed Sep 18, 2024
1 parent cc3688f commit 9d8e1ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
Expand Down
4 changes: 2 additions & 2 deletions Sources/App/configure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 9d8e1ae

Please sign in to comment.