Skip to content

Commit 1f135a2

Browse files
committed
Pass skip duplicates to add(_:skipDuplicates)
1 parent a462483 commit 1f135a2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Sources/PostgresMigrations/Migrations.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ public actor DatabaseMigrations {
5050

5151
/// Add migrations to list of migrations to be be applied
5252
/// - Parameters
53-
/// - migration: DatabaseMigration to be applied
53+
/// - migrations: Collection of DatabaseMigrations to be applied
5454
/// - skipDuplicates: Only add migration if it doesn't exist in the list
5555
public func add(_ migrations: some Collection<DatabaseMigration>, skipDuplicates: Bool = false) {
5656
for migration in migrations {
57-
self.add(migration)
57+
self.add(migration, skipDuplicates: skipDuplicates)
5858
}
5959
}
6060

@@ -66,7 +66,7 @@ public actor DatabaseMigrations {
6666
self.reverts[migration.name] = migration
6767
}
6868

69-
/// Options in ``DatabaseMigrations/revertInconsistent(client:group:options:logger:dryRun:)``.
69+
/// Options used in ``DatabaseMigrations/apply(client:group: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 in ``DatabaseMigrations/revertInconsistent(client:group:options:logger:dryRun:)``.
173+
/// Options used in ``DatabaseMigrations/revert(client:group:options:logger:dryRun:)``.
174174
public struct RevertOptions: OptionSet, Sendable {
175175
public let rawValue: Int
176176

@@ -268,7 +268,7 @@ public actor DatabaseMigrations {
268268
}
269269
}
270270

271-
/// Options in ``DatabaseMigrations/revertInconsistent(client:group:options:logger:dryRun:)``.
271+
/// Options used in ``DatabaseMigrations/revertInconsistent(client:group:options:logger:dryRun:)``.
272272
public struct RevertInconsistentOptions: OptionSet, Sendable {
273273
public let rawValue: Int
274274

0 commit comments

Comments
 (0)