feat: Fixes 'any' not being used in some function calls.
This commit is contained in:
@@ -123,7 +123,7 @@ extension Employee {
|
||||
|
||||
let name = "CreateEmployee"
|
||||
|
||||
func prepare(on database: Database) async throws {
|
||||
func prepare(on database: any Database) async throws {
|
||||
try await database.schema(Employee.schema)
|
||||
.id()
|
||||
.field("first_name", .string, .required)
|
||||
@@ -135,7 +135,7 @@ extension Employee {
|
||||
.create()
|
||||
}
|
||||
|
||||
func revert(on database: Database) async throws {
|
||||
func revert(on database: any Database) async throws {
|
||||
try await database.schema(Employee.schema).delete()
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -83,7 +83,7 @@ extension VendorBranch {
|
||||
struct Migrate: AsyncMigration {
|
||||
let name = "CreateVendorBranch"
|
||||
|
||||
func prepare(on database: Database) async throws {
|
||||
func prepare(on database: any Database) async throws {
|
||||
try await database.schema(VendorBranch.schema)
|
||||
.id()
|
||||
.field("name", .string, .required)
|
||||
@@ -94,7 +94,7 @@ extension VendorBranch {
|
||||
.create()
|
||||
}
|
||||
|
||||
func revert(on database: Database) async throws {
|
||||
func revert(on database: any Database) async throws {
|
||||
try await database.schema(VendorBranch.schema).delete()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user