Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign updiesel_cli doesn't fully respect MIGRATION_DIRECTORY #857
Comments
Eijebong
added
the
bug
label
Apr 12, 2017
Eijebong
referenced this issue
Apr 20, 2017
Merged
Add support for custom migration_dir to disel migration revert and redo #868
added a commit
to Eijebong/diesel
that referenced
this issue
May 12, 2017
Eijebong
referenced this issue
May 12, 2017
Merged
Respect --migration-dir and the MIGRATION_DIRECTORY env variable everywhere #901
added a commit
to Eijebong/diesel
that referenced
this issue
May 12, 2017
Eijebong
closed this
in
#901
May 14, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
matt4682 commentedApr 12, 2017
When creating and running migrations through
diesel migration generateanddiesel migration run, diesel_cli looks at theMIGRATION_DIRECTORYenvironment variable and uses that as shown here.However when you run
diesel setup, it will only search for and create the default migrations directory.Additionally running
diesel database setupuses therun_pending_migrationsfunction which also only looks at the default migrations directory, so migrations won't be run if they are configured and stored somewhere else.