Skip to content

Commit

Permalink
It helps if, when you add a new enum case, you add it to the database…
Browse files Browse the repository at this point in the history
…'s representation. It also helps if when you run tests locally, they actually test something.
  • Loading branch information
gwynne committed Sep 28, 2024
1 parent 707b0dc commit 8f4ee7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/QueuesFluentDriver/JobModelMigrate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public struct JobModelMigration: AsyncSQLMigration {
try await database.create(enum: stateEnumType)
.value("pending")
.value("processing")
.value("completed")
.run()
case .inline:
stateEnumType = "enum('\(StoredJobState.allCases.map(\.rawValue).joined(separator: "','"))')"
Expand Down

0 comments on commit 8f4ee7e

Please sign in to comment.