File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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.
109113func SetIgnoreUnknown (v bool ) {
110114 migSet .IgnoreUnknown = v
111115}
You can’t perform that action at this time.
0 commit comments