Skip to content

Commit 031b8ee

Browse files
author
Will Dixon
committed
Add a comment to iterate that IgnoreUnknown should be used sparingly
1 parent 514cd20 commit 031b8ee

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

migrate.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ type MigrationSet struct {
3333
// SchemaName schema that the migration table be referenced.
3434
SchemaName string
3535
// IgnoreUnknown skips the check to see if there is a migration
36-
// ran in the database that is not in MigrationSource
36+
// ran in the database that is not in MigrationSource.
37+
//
38+
// This should be used sparingly as it is removing a saftey check.
3739
IgnoreUnknown bool
3840
}
3941

@@ -106,6 +108,8 @@ func SetSchema(name string) {
106108

107109
// SetIgnoreUnknown sets the flag that skips database check to see if there is a
108110
// migration in the database that is not in migration source.
111+
//
112+
// This should be used sparingly as it is removing a saftey check.
109113
func SetIgnoreUnknown(v bool) {
110114
migSet.IgnoreUnknown = v
111115
}

0 commit comments

Comments
 (0)