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

[RFC] - upgrading sylius/standar and database migrations #74

Closed
nakashu opened this issue Sep 18, 2015 · 3 comments
Closed

[RFC] - upgrading sylius/standar and database migrations #74

nakashu opened this issue Sep 18, 2015 · 3 comments

Comments

@nakashu
Copy link

nakashu commented Sep 18, 2015

Hi all

Is there any recommended way how run migrations after upgrading the sylius/sylius-standard distribution?

I started with 0.14.
After release of 0.15, I changed my composer.json and fired up composer update.

The codebase updated without problem but, my existing database didn't update with migrations from main sylius package.

The first problem is that with sylius/sylius-standard you wont have migrations_versions table at all in your DB, so even if I configure doctrine migrations to look in vendor/sylus/sylius/app/migrations directory with the correct namespace, doctrine will try to run every migration there.

Even tho this is fixed with this PR Sylius/Sylius#3205, if the config would point to vendor/sylius/sylius/migrations.
There is still the issue about where to point migrations.yml by default:

  • app/DoctrineMigration - users application folder
  • vendor/sylius/sylius/app/migrations

If anyone got any pointers experience with cross bundle migrations, share.

@michalmarcinkowski
Copy link
Contributor

We will discuss the migrations and organize them in the v0.16. Probably all migrations will be put in the CoreBundle and we will add sylius:migrate command which will run them. So after composer update sylius/sylius you will just run the command and the database will be updated to the newest Sylius version.

@michalmarcinkowski
Copy link
Contributor

The discussion will be continued there Sylius/Sylius#3303

@nakashu
Copy link
Author

nakashu commented Sep 18, 2015

thanks michal

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

2 participants