Skip to content

Commit 41823a0

Browse files
committed
Rename migration to match field name
1 parent 91ed579 commit 41823a0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/App/Migrations/079/UpdateRepositoryAddFork.swift renamed to Sources/App/Migrations/079/UpdateRepositoryAddForkedFrom.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Fluent
1616
import SQLKit
1717

1818

19-
struct UpdateRepositoryAddFork: AsyncMigration {
19+
struct UpdateRepositoryAddForkedFrom: AsyncMigration {
2020
func prepare(on database: Database) async throws {
2121
try await database.schema("repositories")
2222
.field("forked_from", .json)

Sources/App/configure.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@ public func configure(_ app: Application) async throws -> String {
334334
do { // Migration 078 - Add `build_date` and `commit_hash` to `builds`
335335
app.migrations.add(UpdateBuildAddBuildDateCommitHash())
336336
}
337-
do { // Migration 079 - Add `fork` to `repositories`
338-
app.migrations.add(UpdateRepositoryAddFork())
337+
do { // Migration 079 - Add `forked_from` to `repositories`
338+
app.migrations.add(UpdateRepositoryAddForkedFrom())
339339
}
340340

341341
app.asyncCommands.use(Analyze.Command(), as: "analyze")

0 commit comments

Comments
 (0)