New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

diesel_cli doesn't fully respect MIGRATION_DIRECTORY #857

Closed
matt4682 opened this Issue Apr 12, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@matt4682

matt4682 commented Apr 12, 2017

When creating and running migrations through diesel migration generate and diesel migration run, diesel_cli looks at the MIGRATION_DIRECTORY environment 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 setup uses the run_pending_migrations function which also only looks at the default migrations directory, so migrations won't be run if they are configured and stored somewhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment