File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import (
14
14
type Migrations []* gormigrate.Migration
15
15
16
16
type gormGooseData struct {
17
- lastAppliedMigrationID string
17
+ lastAppliedMigrationID string
18
18
}
19
19
20
20
type gormMigration struct {
@@ -25,7 +25,13 @@ type gormMigration struct {
25
25
}
26
26
27
27
var DefaultOptions * Options = & Options {
28
- Options : * gormigrate .DefaultOptions ,
28
+ Options : gormigrate.Options {
29
+ TableName : gormigrate .DefaultOptions .TableName ,
30
+ IDColumnName : gormigrate .DefaultOptions .IDColumnName ,
31
+ IDColumnSize : gormigrate .DefaultOptions .IDColumnSize ,
32
+ UseTransaction : true ,
33
+ ValidateUnknownMigrations : gormigrate .DefaultOptions .ValidateUnknownMigrations ,
34
+ },
29
35
}
30
36
31
37
type Options struct {
@@ -132,4 +138,4 @@ func getLastGormGooseAppliedMigration() (string, error) {
132
138
return "" , result .Error
133
139
}
134
140
return fmt .Sprint (gm .VersionID ), result .Error
135
- }
141
+ }
You can’t perform that action at this time.
0 commit comments