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
Replace DC2TYPE:array field types with JSON #16008
Conversation
TheMilek
commented
Mar 15, 2024
•
edited by jakubtobiasz
edited by jakubtobiasz
Q | A |
---|---|
Branch? | 1.13 |
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Related tickets | fixes #9399 |
License | MIT |
Bunnyshell Preview Environment deletedAvailable commands:
|
438b422
to
c0d4e19
Compare
@@ -22,7 +22,7 @@ | |||
<field name="objectId" column="object_id" length="64" nullable="true" /> | |||
<field name="objectClass" column="object_class" type="string" /> | |||
<field name="version" column="version" type="integer" /> | |||
<field name="data" column="data" type="array" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why nullable 🤔?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it was done to match original mapping
but I don't think it makes sense to do so at this stage.
<field name="data" column="data" type="array" /> | |
<field name="data" column="data" type="json" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this scenario for ref
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange, that it worked before.
What do you think mentioning this change in changelog, if it's necessary?
src/Sylius/Bundle/CoreBundle/Migrations/Version20240315112656.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/CoreBundle/Migrations/Version20240315112656.php
Outdated
Show resolved
Hide resolved
@@ -22,7 +22,7 @@ | |||
<field name="objectId" column="object_id" length="64" nullable="true" /> | |||
<field name="objectClass" column="object_class" type="string" /> | |||
<field name="version" column="version" type="integer" /> | |||
<field name="data" column="data" type="array" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it was done to match original mapping
but I don't think it makes sense to do so at this stage.
<field name="data" column="data" type="array" /> | |
<field name="data" column="data" type="json" /> |
796a7c4
to
252141f
Compare
@@ -22,7 +22,7 @@ | |||
<field name="objectId" column="object_id" length="64" nullable="true" /> | |||
<field name="objectClass" column="object_class" type="string" /> | |||
<field name="version" column="version" type="integer" /> | |||
<field name="data" column="data" type="array" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange, that it worked before.
What do you think mentioning this change in changelog, if it's necessary?
Thank you, @TheMilek! |