Fixes #25. migrate command would do nothing except Dial the sql connection and hang up. It now calls db.Automigrate() explicitly.
Dial does potentially call Automigrate() if you have the right environment variables set, but if you are explicitly attempting to migrate then you shouldn't need to set any other variables.
- Test plan
All tests pass, and the db tables all get created. Tested with sqlite3 and mysql.
- Description for the changelog
git-gateway migrate command will now function as expected.
- A picture of a cute animal (not mandatory but encouraged)
🐮
- Summary
Fixes #25.
migrate
command would do nothing except Dial the sql connection and hang up. It now calls db.Automigrate() explicitly.Dial does potentially call Automigrate() if you have the right environment variables set, but if you are explicitly attempting to
migrate
then you shouldn't need to set any other variables.- Test plan
All tests pass, and the db tables all get created. Tested with sqlite3 and mysql.
- Description for the changelog
git-gateway migrate command will now function as expected.
- A picture of a cute animal (not mandatory but encouraged) 🐮