You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My migration up scripts, include a script that creates the schema that is specified in the database.json file.
What I think is happening is, when the script is run, it creates the migration in the public schema. As part the initial up scripts it creates the new schema.
Now when the migrate script is run a second time, in my case with the down command, a second table is created in the new schema, which is empty.
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.
I'm submitting a...
Current behavior
I am using db-migrate with postgres. I have a scope and a schema defined. The database.json file looks something like this
When I run up everything is okay
When I run the down command
I get a message saying nothing to run
If I leave out the schema from the database.json file, up and down work as expected, and down starts removing the migrations one at a time!
I am guessing that the down command is looking for the migration table in the schema that is specified
Expected behavior
Down command should work the same if their is a schema or no schema specified.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
With a postgres database...
Edit the up file to create a dummy table
Edit the down file to drop the dummy table
Create the database file with a schema
Run up
Run down
Environment
The text was updated successfully, but these errors were encountered: