Skip to content
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

migrate_from_offset issue #153

Open
kevcam4891 opened this issue Mar 4, 2015 · 1 comment · May be fixed by #175
Open

migrate_from_offset issue #153

kevcam4891 opened this issue Mar 4, 2015 · 1 comment · May be fixed by #175

Comments

@kevcam4891
Copy link
Contributor

Getting a weird results when migrating from an offset. I want to revert to the most recent migration (-1), works great. One migration file is executed.

[root@app app]# ./vendor/bin/ruckus.php db:migrate version=-1
Started: 2015-03-04 3:11pm UTC

[db:migrate]:
        Migrating DOWN to: 20150225143350
========= TestSession2 ======== (0.02)


Finished: 2015-03-04 3:11pm UTC

Results change when doing (-2), (-3), etc...

[root@app app]# ./vendor/bin/ruckus.php db:migrate version=-2
Started: 2015-03-04 3:21pm UTC

[db:migrate]:
        Migrating DOWN to: 20150214211634
========= TestSession2 ======== (0.02)
========= TestWindow ======== (0.04)
========= ChartsPlots ======== (0.02)


Finished: 2015-03-04 3:22pm UTC

[root@app app]# dbrestore ilogic_app_bak_2015_03_04_083955_bar_data
Restoring DB...
[root@app app]# ./vendor/bin/ruckus.php db:migrate version=-3
Started: 2015-03-04 3:22pm UTC

[db:migrate]:
        Migrating DOWN to: 20150210141300
========= TestSession2 ======== (0.02)
========= TestWindow ======== (0.04)
========= ChartsPlots ======== (0.02)
========= TestsSessions ======== (0.00)
========= MatchValues ======== (0.01)


Finished: 2015-03-04 3:22pm UTC

[root@app app]# dbrestore ilogic_app_bak_2015_03_04_083955_bar_data
Restoring DB...
[root@app app]# ./vendor/bin/ruckus.php db:migrate version=-4
Started: 2015-03-04 3:28pm UTC

[db:migrate]:
        Migrating DOWN to: 20150202151132
========= TestSession2 ======== (0.02)
========= TestWindow ======== (0.04)
========= ChartsPlots ======== (0.02)
========= TestsSessions ======== (0.00)
========= MatchValues ======== (0.01)
========= Charts ======== (0.02)
========= BankLeaseExpires ======== (0.01)


Finished: 2015-03-04 3:28pm UTC

Have no problem looking into this myself and submitting pull request, but I wanted to see if this was happening elsewhere?

Thanks!

@silverslice
Copy link
Contributor

@kevinc1984, what version of ruckusing do you use? Could you enable debug here and show output?

pips- added a commit to pips-/ruckusing-migrations that referenced this issue Mar 19, 2017
@pips- pips- linked a pull request Mar 19, 2017 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants