feat: Fixes 'any' not being used in some function calls.
This commit is contained in:
@@ -78,7 +78,7 @@ extension Vendor {
|
||||
struct Migrate: AsyncMigration {
|
||||
let name = "CreateVendor"
|
||||
|
||||
func prepare(on database: Database) async throws {
|
||||
func prepare(on database: any Database) async throws {
|
||||
try await database.schema(Vendor.schema)
|
||||
.id()
|
||||
.field("name", .string, .required)
|
||||
@@ -88,7 +88,7 @@ extension Vendor {
|
||||
.create()
|
||||
}
|
||||
|
||||
func revert(on database: Database) async throws {
|
||||
func revert(on database: any Database) async throws {
|
||||
try await database.schema(Vendor.schema).delete()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user