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

Update messenger table if table exist #13846

Closed

Conversation

delyriand
Copy link
Contributor

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

@delyriand delyriand requested a review from a team as a code owner April 7, 2022 13:28
@lchrusciel
Copy link
Member

Hey Maxime,

thanks a lot for your contribution. Do you know, why we didn't catch it up with our workflow? Can we improve our tests to avoid regression in the future?

@delyriand
Copy link
Contributor Author

I don't know why your workflow don't catch this error. Because in your workflow/application.yml file, i saw 2 tests with the validation command: test-application-without-frontend-postgres and test-application-without-frontend-mariadb

@lchrusciel
Copy link
Member

Ok, PostgreSQL is not working, MariaDB is throwing erros:
image

and we don't test it on MySQL....

@Ferror
Copy link
Contributor

Ferror commented Apr 7, 2022

@lchrusciel I will open PR with schema validation on pipelines

Copy link
Contributor

@wadjeroudi wadjeroudi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having the same problem after sylius 1.11 upgrade.

lchrusciel added a commit that referenced this pull request May 4, 2022
This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | [PR](#13846)
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.10 or 1.11 branch(the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


The PR should be failing, but after the #13846 it should be nice and green :)

This is what happened here. Cherry-pick the change from #13846 that all database pipelines were failing. What I found is that we actually test the schema, but accept failing steps. By not accepting that we were able to find out the problem with some extra things. Like our PostgreSQL schema is successfully validated, but our MariaDB schema is not. That's because of JSON type and the difference between MySQL and MariaDB. Now we have to decide whether we want these two schemas to be up to date or we turn off migrations on MariaDB



Commits
-------

91d5a94 [Maintenance]Run schema validation on mysql pipeline
611afcc fix(migration): update messenger table if table exist
@lchrusciel
Copy link
Member

Closing as it was already fixed in Sylius v1.11.5

@lchrusciel lchrusciel closed this May 23, 2022
Zales0123 pushed a commit to Sylius/SyliusCoreBundle that referenced this pull request Jun 2, 2022
This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | [PR](Sylius/Sylius#13846)
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.10 or 1.11 branch(the lowest possible)
 - Features and deprecations must be submitted against the master branch
 - Make sure that the correct base branch is set

 To be sure you are not breaking any Backward Compatibilities, check the documentation:
 https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->


The PR should be failing, but after the Sylius/Sylius#13846 it should be nice and green :)

This is what happened here. Cherry-pick the change from #13846 that all database pipelines were failing. What I found is that we actually test the schema, but accept failing steps. By not accepting that we were able to find out the problem with some extra things. Like our PostgreSQL schema is successfully validated, but our MariaDB schema is not. That's because of JSON type and the difference between MySQL and MariaDB. Now we have to decide whether we want these two schemas to be up to date or we turn off migrations on MariaDB



Commits
-------

91d5a94 [Maintenance]Run schema validation on mysql pipeline
611afcc fix(migration): update messenger table if table exist
@delyriand delyriand deleted the fix/13838-update-messenger-table branch June 8, 2022 11:43
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 this pull request may close these issues.

Database isn't sync with mapping for Sylius 1.11
4 participants