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

Migration history is not migrationPath-aware #8383

Closed
bethrezen opened this issue May 12, 2015 · 3 comments
Closed

Migration history is not migrationPath-aware #8383

bethrezen opened this issue May 12, 2015 · 3 comments

Comments

@bethrezen
Copy link
Contributor

Migration history table stores only version and apply_time.
But there's a problem when we need to migrate down - we need to specify exact migrationPath for migrations we want to revert!

@cebe
Copy link
Member

cebe commented May 12, 2015

The current implementation assumes that migrations are all located in one place. this will be solved when we support multiple paths. duplicate of #384.

@cebe cebe closed this as completed May 12, 2015
@bethrezen
Copy link
Contributor Author

Just for others who will meet the same problem.
I've used different migrationPath for installing CMS extensions migrations.
I have information on migrationPath and extension ID.
Therefore solution was to separate all extensions migrations to separate table - one table for one migration.
The better solution is expected from solving #384

@mdmunir
Copy link
Contributor

mdmunir commented May 13, 2015

https://github.com/deesoft/yii2-console
Support multiple path and compatible with current migration table.

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

No branches or pull requests

3 participants