@@ -52,7 +52,7 @@ public actor DatabaseMigrations {
5252 /// - Parameters
5353 /// - migrations: Collection of DatabaseMigrations to be applied
5454 /// - skipDuplicates: Only add migration if it doesn't exist in the list
55- public func add( _ migrations: some Collection < any DatabaseMigration > , skipDuplicates: Bool = false ) {
55+ public func add( contentsOf migrations: some Collection < any DatabaseMigration > , skipDuplicates: Bool = false ) {
5656 for migration in migrations {
5757 self . add ( migration, skipDuplicates: skipDuplicates)
5858 }
@@ -66,7 +66,7 @@ public actor DatabaseMigrations {
6666 self . reverts [ migration. name] = migration
6767 }
6868
69- /// Options used in ``DatabaseMigrations/apply(client:group :options:logger:dryRun:)``.
69+ /// Options used in ``DatabaseMigrations/apply(client:groups :options:logger:dryRun:)``.
7070 public struct ApplyOptions : OptionSet , Sendable {
7171 public let rawValue : Int
7272
@@ -170,7 +170,7 @@ public actor DatabaseMigrations {
170170 self . setCompleted ( )
171171 }
172172
173- /// Options used in ``DatabaseMigrations/revert(client:group :options:logger:dryRun:)``.
173+ /// Options used in ``DatabaseMigrations/revert(client:groups :options:logger:dryRun:)``.
174174 public struct RevertOptions : OptionSet , Sendable {
175175 public let rawValue : Int
176176
@@ -269,7 +269,7 @@ public actor DatabaseMigrations {
269269 }
270270 }
271271
272- /// Options used in ``DatabaseMigrations/revertInconsistent(client:group :options:logger:dryRun:)``.
272+ /// Options used in ``DatabaseMigrations/revertInconsistent(client:groups :options:logger:dryRun:)``.
273273 public struct RevertInconsistentOptions : OptionSet , Sendable {
274274 public let rawValue : Int
275275
@@ -300,8 +300,8 @@ public actor DatabaseMigrations {
300300 ///
301301 /// For a migration to be removed it has to have been registered either using
302302 /// ``DatabaseMigrations/add(_:skipDuplicates:)`` or ``DatabaseMigrations/register(_:)``. If a migration name
303- /// is found that has no associated migration then a ``DatabaseMigrationError. cannotRevertMigration`` error is
304- /// thrown. You can avoid this error by including the option ``RevertInconsistentOptions. removeUnknownMigrations``
303+ /// is found that has no associated migration then a ``DatabaseMigrationError/ cannotRevertMigration`` error is
304+ /// thrown. You can avoid this error by including the option ``RevertInconsistentOptions/ removeUnknownMigrations``
305305 /// which will remove database entries for migrations that haven't been registered.
306306 ///
307307 /// - Parameters:
0 commit comments