We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ff9ee0 commit 20c5043Copy full SHA for 20c5043
Makefile
@@ -17,4 +17,7 @@ test:
17
go test ./... -v
18
19
test-db:
20
- docker-compose up
+ docker-compose up
21
+
22
+down:
23
+ docker-compose down --volumes
cmd/migrate.go
@@ -78,6 +78,11 @@ var migrateCmd = &cobra.Command{
78
logger.Info("Migration succeeded!")
79
}
80
81
+ err = tx.Commit()
82
+ if err != nil {
83
+ return logger.Fatalf("Failed to commit migrations! Error: %s", err.Error())
84
+ }
85
86
logger.Infof("Applied %d migrations successfully!", len(migrations))
87
return nil
88
},
0 commit comments