Skip to content

Commit

Permalink
remove extra logging and add to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryan Paluch committed May 23, 2015
1 parent bd5ea4f commit 11d2f71
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion gomigrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ func (m *Migrator) ApplyMigration(migration *Migration, mType migrationType) err

// Perform the migration.
for _, cmd := range commands {
log.Printf("running command %s\n", cmd)
result, err := transaction.Exec(cmd)
if err != nil {
log.Printf("Error executing migration: %v", err)
Expand Down
1 change: 1 addition & 0 deletions test_migrations/test1_mysql/1_test_down.sql
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DROP TABLE test;
DROP TABLE test2;
4 changes: 4 additions & 0 deletions test_migrations/test1_mysql/1_test_up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ CREATE TABLE test (
id INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY (id)
) ENGINE=MyISAM;
CREATE TABLE test2 (
id INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY (id)
) ENGINE=MyISAM;

0 comments on commit 11d2f71

Please sign in to comment.