From 1e5dfd492c7b966a536025870e224a0ffc90f51c Mon Sep 17 00:00:00 2001 From: Holly Schilling Date: Fri, 13 Jun 2025 10:00:10 -0500 Subject: [PATCH] Added `any` to Database protocol in code examples in ZH language --- docs/fluent/migration.zh.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/fluent/migration.zh.md b/docs/fluent/migration.zh.md index 095364a5..a0869dd1 100644 --- a/docs/fluent/migration.zh.md +++ b/docs/fluent/migration.zh.md @@ -5,11 +5,11 @@ ```swift // An example migration. struct MyMigration: Migration { - func prepare(on database: Database) -> EventLoopFuture { + func prepare(on database: any Database) -> EventLoopFuture { // Make a change to the database. } - func revert(on database: Database) -> EventLoopFuture { + func revert(on database: any Database) -> EventLoopFuture { // Undo the change made in `prepare`, if possible. } } @@ -19,11 +19,11 @@ struct MyMigration: Migration { ```swift struct MyMigration: AsyncMigration { - func prepare(on database: Database) async throws { + func prepare(on database: any Database) async throws { // Make a change to the database. } - func revert(on database: Database) async throws { + func revert(on database: any Database) async throws { // Undo the change made in `prepare`, if possible. } }