From fbc1c43e3db64fec2e25fbc90be40abf41b9721f Mon Sep 17 00:00:00 2001 From: Denis Shkrut Date: Mon, 20 Apr 2020 19:12:43 +0300 Subject: [PATCH] Update helpful comment in migration template --- template/migrations/list/1_create_example_table.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/template/migrations/list/1_create_example_table.go b/template/migrations/list/1_create_example_table.go index ac9a0bb..c269e76 100644 --- a/template/migrations/list/1_create_example_table.go +++ b/template/migrations/list/1_create_example_table.go @@ -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) }