plugin migration order specified in config

This commit is contained in:
Ian Norden
2019-03-13 11:42:29 -05:00
parent 2ac682afa8
commit 84aa0a7eba
3 changed files with 46 additions and 20 deletions
+2 -2
View File
@@ -105,9 +105,9 @@ func (m *manager) setupMigrationEnv() error {
}
// Create copies of db migrations from vendored libs
func (m *manager) createMigrationCopies(paths map[string]bool) error {
func (m *manager) createMigrationCopies(paths []string) error {
// Iterate through migration paths to find migration directory
for path := range paths {
for _, path := range paths {
dir, err := ioutil.ReadDir(path)
if err != nil {
return err