Skip to content

Commit fbc1c43

Browse files
committed
Update helpful comment in migration template
1 parent 111fbaf commit fbc1c43

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

template/migrations/list/1_create_example_table.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ func (m *CreateExampleTable) Up(con *sqlx.DB) {
1616
// Write your migration logic here
1717
// Example:
1818
// 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)
2022
}
2123

2224
func (m *CreateExampleTable) Down(con *sqlx.DB) {
2325
// Write your migration rollback logic here
2426
// Example:
2527
// 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)
2731
}

0 commit comments

Comments
 (0)