-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Components, II attempt #1236
Components, II attempt #1236
Conversation
@pjedrzejewski need help ? What's left to do ? |
@pjedrzejewski should we provide a way to migrate the database ? |
@jjanvier I'll generate a migration and see how it works. :) Right now I'm adding UPGRADE file. @Sylius What do you think about releasing 0.9.0 tomorrow and merging this? I think we should do it tomorrow and move forward + do what is possible to help people upgrading. (it is not that hard... just boring changes) |
@pjedrzejewski as long as you tag everything I guess you can merge. My migration was impossible. I had to drop my database, but I didn't look at what failed.
|
Bug when I try to edit a choice attribute. |
Bug: no validation constraint on the attribute type when you add a new attribute to the product (everything's OK when you edit an existing attribute) |
@pjedrzejewski 1000 stargazers tomorrow \o/ |
I haven't checked anything on this branch, but if you consider it's quite OK then yes we should merge it (after 0.9 tag of course). We'll then work on master to polish everything, it will be clearer. @jjanvier can you tell more about this migration that was impossible? This is the most annoying point... |
@winzou I got this when I update a database schema that is up-to-date with the master branch :
|
@winzou That's because ALTER TABLE sylius_product_prototype_option ADD CONSTRAINT FK_1AD7AAC5A7C41D6F FOREIGN KEY (option_id) REFERENCES sylius_product_option (id);
// ...
// other updates
// ...
ALTER TABLE sylius_product_option ADD id INT AUTO_INCREMENT NOT NULL, ADD name |
Maybe we should consider using doctrine:migration from now on... |
@jjanvier That's what I meant with migrations. :) |
Ah.. Maybe I should delete my comment so :) |
@jjanvier I added DoctrineMigrationsBundle and auto-generated migration. I'll try to modify it to preserve the data and just rename the tables. |
Heads up - I want to be absolutely sure that both Sylius 0.9.0 and Sylius-Standard 0.9.0 works properly, so I'll verify this and squash some minor issues during the weekend and merge this on Sunday. Blog post on Monday. :) |
@pjedrzejewski need help for the migration script ? I can at least test a real migration process once this script will be finished |
@jjanvier If you have some time to play with it - yes, definitely! |
Github is showing weird diff stats after rebase... |
Like what ? |
It seems new components and bundles are gone... |
That's why you should work on a fork >< |
I'll switch to fork yeah, but still this is not the problem - the bundles and components are there - https://github.com/Sylius/Sylius/tree/components-2/src/Sylius/Bundle/AttributeBundle. |
If you browse the branch and commits, everything is in place. It looks like PR is wrong. |
Is it possible to open another PR from this branch ? Github can handle that ? |
@pjedrzejewski maybe we should add another warning : "Please, test this migration in your stage environment before going to production." I didn't have the time to test your upgrade procedure. Did someone have the time ? |
The Doctrine Migration itself worked properly. |
yes ! |
I'm not sure about the class |
Done. |
That's great work guys! Big step forward. P.S. I waited with some good stuff till it is merged, lets do it now. |
@makasim Great! :) |
Thanks for the help guys! |
Good job guys !! |
I have a little issue with the subtree splits of renamed bundles, hopefully I'll fix this soon. |
Awesome! Congrats guys! |
Did read about decoupling MoneyBundle from PromotionsBundle in #1191 , is there a status update on that? 👍 Isn't it a matter about an extra |
composer.json
composer.json
CHANGELOG
CHANGELOG