File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,16 @@ func (m *CreateExampleTable) Up(con *sqlx.DB) {
16
16
// Write your migration logic here
17
17
// Example:
18
18
// con.MustExec("CREATE TABLE example ( id int auto_increment, constraint migrations_pk primary key (id));")
19
- // Or you can use existed query builder
19
+ // Or you can use existed query builder:
20
+ // import "github.com/ShkrutDenis/go-migrations/builder"
21
+ // builder.NewTable("example", con)
20
22
}
21
23
22
24
func (m * CreateExampleTable ) Down (con * sqlx.DB ) {
23
25
// Write your migration rollback logic here
24
26
// Example:
25
27
// con.MustExec("DROP TABLE example;")
26
- // Or you can use existed query builder
28
+ // Or you can use existed query builder:
29
+ // import "github.com/ShkrutDenis/go-migrations/builder"
30
+ // builder.NewTable("example", con)
27
31
}
You can’t perform that action at this time.
0 commit comments