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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve 1.8 migrations upgrade instructions #11898

Merged
merged 2 commits into from Oct 1, 2020

Conversation

Zales0123
Copy link
Member

Q A
Branch? 1.8
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets fixes #11864
License MIT

This PR fixes the problem with upgrade to Sylius 1.8. I believe it can be done better (duplicated migrations should be detected automatically), but at least it allows to update quite smoothly. The main goal is to delete redundant migrations provided previously in Sylius-Standard (as they're indeed not needed anymore) and mark already executed migrations as migrated.

The change in extension is also fixing the bug, that migrations are generated in vendors instead of src/Migrations directory.

Thank you for all the people involved in fixing this problem, especially for @mmenozzi, @Jibbarth, @chrissnyder2337, Martjn... I hope I didn't miss anyone :) It would be great if you can follow the instruction and check out can you upgrade your store with them.

I also believe we would be able to provide some more elegant solution to this problem as soon as possible 馃枛

@Zales0123 Zales0123 added the Bug Confirmed bugs or bugfixes. label Oct 1, 2020
@Zales0123 Zales0123 requested a review from a team as a code owner October 1, 2020 11:46
@probot-autolabeler probot-autolabeler bot added the Maintenance CI configurations, READMEs, releases, etc. label Oct 1, 2020
@lchrusciel lchrusciel merged commit d8d8075 into Sylius:1.8 Oct 1, 2020
@lchrusciel
Copy link
Member

Thanks, Mateusz! 馃帀

Zales0123 added a commit that referenced this pull request Oct 2, 2020
This PR was merged into the 1.8 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.8 
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file -->
| Related tickets | fixes #11864, continuation of #11898
| License         | MIT

As I mentionned in [slack](https://sylius-devs.slack.com/archives/CBV3ZLA8P/p1601565976036000?thread_ts=1601372428.024800&cid=CBV3ZLA8P) after trying the fix provided by @Zales0123, there is still a problem when the AdminApiBundle is registered after CoreBundle in `config/bundles.php`.

This PR should fix that, by merging the new migration_path of CoreBundle AND AdminApiBundle with the latest migration_path provided in `doctrine_migrations` config. That's the project one.



Commits
-------

fb5a82d Add migrations_path by merging them with the application one
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed bugs or bugfixes. Maintenance CI configurations, READMEs, releases, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants