-
-
Notifications
You must be signed in to change notification settings - Fork 359
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
Generating a migration script using the programmable API does not use the name provided in the arguments #652
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Any updates on this? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This is due to the following
This is shifting out the variable, while this is pushing in Line 332 in bd165a5
needs to be fixed in the api.js thank you for reporting! |
fixes db-migrate#652 Signed-off-by: James Mortemore <jamesmortemore@gmail.com>
I'm submitting a...
Current behavior
The migrationName parameter provided on create method of the programmable API is ignored when creating a migration. It instead uses the first command-line argument as the name.
Expected behavior
Use the migrationName parameter passed to the create method as the name of the new migration.
Minimal reproduction of the problem with instructions
index.js:
running the command above will produce the following output:
$ DATABASE_URL=postgres://localhost:5432/sample node . migration this-should-be-the-name-of-migration name: this-should-be-the-name-of-migration [INFO] Created migration at /Users/user/db-migrate-bug/migrations/20191014092749-migration.js
The filename produced is the same as the one logged above.
What is the motivation / use case for changing the behavior?
to be able to create migration files with correct file names programmatically
Environment
The text was updated successfully, but these errors were encountered: