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 up--migration-dir option does not work #1301
Comments
This comment has been minimized.
|
I think this may be a similar issue as #1201 |
added a commit
to weiznich/diesel
that referenced
this issue
Nov 14, 2017
notryanb
closed this
in
#1304
Nov 27, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
agentsim commentedNov 11, 2017
Setup
Versions
Problem Description
The CLI does not respect the --migration-dir option.
What are you trying to accomplish?
Perform diesel migration commands on a custom migration directory. Specifically the following command:
diesel migration --database-url my.db --migration-dir migrations/sqlite listThe
migrations/sqlitefolder contains a folder called2017-11-11-060348_initial, which contains onlyup.sqlanddown.sql.my.dbhas had no migrations applied.What is the expected output?
The command should show the list of available migrations.
What is the actual output?
Invalid migration directory, the directory's name should be <timestamp>_<name_of_migration>, and it should only contain up.sql and down.sql.