Skip to content

Commit

Permalink
cmd: Adds migrate commands to the proper parent command
Browse files Browse the repository at this point in the history
  • Loading branch information
arekkas committed May 8, 2018
1 parent dedc32a commit 231c70d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/migrate_hydra.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Before running this command on an existing database, create a back up!
}

func init() {
RootCmd.AddCommand(migrateHydraCmd)
migrateCmd.AddCommand(migrateHydraCmd)

migrateHydraCmd.Flags().Bool("read-from-env", false, "Instead of reading the database URL from the command line arguments, the value of environment variable DATABASE_URL will be used.")
}
2 changes: 1 addition & 1 deletion cmd/migrate_sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Before running this command on an existing database, create a back up!
}

func init() {
RootCmd.AddCommand(migrateSqlCmd)
migrateCmd.AddCommand(migrateSqlCmd)

migrateSqlCmd.Flags().Bool("read-from-env", false, "Instead of reading the database URL from the command line arguments, the value of environment variable DATABASE_URL will be used.")
}

0 comments on commit 231c70d

Please sign in to comment.