-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
Programmable API not working with MongoDB #474
Comments
No update @wzrdtales ? |
Sry for being that late @BorntraegerMarc I can't really get what your problem is from what you've written.
Where exactly is the problem there? As expected if you run in the same scope up after down it will rexecute from the point you have migrated there. Can you give a reproducable example so I can have a closer look? |
@wzrdtales No problem :)
And basically we had the scope The problem can only be fixed by resetting migrate instance manually (introducing the already posted DBMigrateHelper class). So maybe I'm completely missing how to use the library? |
any update on this @wzrdtales ? :) |
sry, have been out of time again... I understand now where you're encountering problems, gonna have a look at this. |
Currently db-migrate programmable API doesn't work properly with scope.
As there are two migration scopes (root and test) and so we intent to run
down on 'test' scope
,down on root scope
,up on root scope
, thenup on test scope
in sequence, however, thedb-migrate API
doesn't work properly as our intention. Once we rundown on test scope
, the coming up/down would run on the same scope.To execute up and down in sequence with different scopes,
DBMigrateHelper
was added as a mediator and now we can mix up and down at our convenience (but we should invokeresetInstance
method between up and down):DBMigrateHelper
:Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: