Skip to content

Commit

Permalink
Update helpful comment in migration template
Browse files Browse the repository at this point in the history
  • Loading branch information
ShkrutDenis committed Apr 20, 2020
1 parent 111fbaf commit fbc1c43
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions template/migrations/list/1_create_example_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@ func (m *CreateExampleTable) Up(con *sqlx.DB) {
// Write your migration logic here
// Example:
// con.MustExec("CREATE TABLE example ( id int auto_increment, constraint migrations_pk primary key (id));")
// Or you can use existed query builder
// Or you can use existed query builder:
// import "github.com/ShkrutDenis/go-migrations/builder"
// builder.NewTable("example", con)
}

func (m *CreateExampleTable) Down(con *sqlx.DB) {
// Write your migration rollback logic here
// Example:
// con.MustExec("DROP TABLE example;")
// Or you can use existed query builder
// Or you can use existed query builder:
// import "github.com/ShkrutDenis/go-migrations/builder"
// builder.NewTable("example", con)
}

0 comments on commit fbc1c43

Please sign in to comment.