Skip to content

fix for #38585: Signed primary columns changed value #38920

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

Open
wants to merge 10 commits into
base: 2.4-develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions app/code/Magento/Catalog/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</table>
<table name="catalog_product_entity_datetime" resource="default" engine="innodb"
comment="Catalog Product Datetime Attribute Backend Table">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -69,7 +69,7 @@
</table>
<table name="catalog_product_entity_decimal" resource="default" engine="innodb"
comment="Catalog Product Decimal Attribute Backend Table">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -105,7 +105,7 @@
</table>
<table name="catalog_product_entity_int" resource="default" engine="innodb"
comment="Catalog Product Integer Attribute Backend Table">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -146,7 +146,7 @@
</table>
<table name="catalog_product_entity_text" resource="default" engine="innodb"
comment="Catalog Product Text Attribute Backend Table">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -181,7 +181,7 @@
</table>
<table name="catalog_product_entity_varchar" resource="default" engine="innodb"
comment="Catalog Product Varchar Attribute Backend Table">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -216,7 +216,7 @@
</table>
<table name="catalog_product_entity_gallery" resource="default" engine="innodb"
comment="Catalog Product Gallery Attribute Backend Table">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -284,7 +284,7 @@
</table>
<table name="catalog_category_entity_datetime" resource="default" engine="innodb"
comment="Catalog Category Datetime Attribute Backend Table">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -322,7 +322,7 @@
</table>
<table name="catalog_category_entity_decimal" resource="default" engine="innodb"
comment="Catalog Category Decimal Attribute Backend Table">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -361,7 +361,7 @@
</table>
<table name="catalog_category_entity_int" resource="default" engine="innodb"
comment="Catalog Category Integer Attribute Backend Table">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -400,7 +400,7 @@
</table>
<table name="catalog_category_entity_text" resource="default" engine="innodb"
comment="Catalog Category Text Attribute Backend Table">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -438,7 +438,7 @@
</table>
<table name="catalog_category_entity_varchar" resource="default" engine="innodb"
comment="Catalog Category Varchar Attribute Backend Table">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -476,7 +476,7 @@
</table>
<table name="catalog_category_product" resource="default" engine="innodb"
comment="Catalog Product To Category Linkage Table">
<column xsi:type="int" name="entity_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true"
comment="Entity ID"/>
<column xsi:type="int" name="category_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Category ID"/>
Expand Down Expand Up @@ -763,7 +763,7 @@
</table>
<table name="catalog_product_entity_tier_price" resource="default" engine="innodb"
comment="Catalog Product Tier Price Attribute Backend Table">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Entity ID"/>
Expand Down
22 changes: 11 additions & 11 deletions app/code/Magento/Customer/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
</table>
<table name="customer_address_entity_datetime" resource="default" engine="innodb"
comment="Customer Address Entity Datetime">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -156,7 +156,7 @@
</table>
<table name="customer_address_entity_decimal" resource="default" engine="innodb"
comment="Customer Address Entity Decimal">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -187,7 +187,7 @@
</index>
</table>
<table name="customer_address_entity_int" resource="default" engine="innodb" comment="Customer Address Entity Int">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -219,7 +219,7 @@
</table>
<table name="customer_address_entity_text" resource="default" engine="innodb"
comment="Customer Address Entity Text">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand All @@ -245,7 +245,7 @@
</table>
<table name="customer_address_entity_varchar" resource="default" engine="innodb"
comment="Customer Address Entity Varchar">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -275,7 +275,7 @@
</index>
</table>
<table name="customer_entity_datetime" resource="default" engine="innodb" comment="Customer Entity Datetime">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -305,7 +305,7 @@
</index>
</table>
<table name="customer_entity_decimal" resource="default" engine="innodb" comment="Customer Entity Decimal">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -336,7 +336,7 @@
</index>
</table>
<table name="customer_entity_int" resource="default" engine="innodb" comment="Customer Entity Int">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -367,7 +367,7 @@
</index>
</table>
<table name="customer_entity_text" resource="default" engine="innodb" comment="Customer Entity Text">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand All @@ -392,7 +392,7 @@
</index>
</table>
<table name="customer_entity_varchar" resource="default" engine="innodb" comment="Customer Entity Varchar">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="attribute_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Attribute ID"/>
Expand Down Expand Up @@ -529,7 +529,7 @@
</index>
</table>
<table name="customer_log" resource="default" engine="innodb" comment="Customer Log Table">
<column xsi:type="int" name="log_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="log_id" unsigned="true" nullable="false" identity="true"
comment="Log ID"/>
<column xsi:type="int" name="customer_id" unsigned="false" nullable="false" identity="false"
comment="Customer ID"/>
Expand Down
10 changes: 5 additions & 5 deletions app/code/Magento/Eav/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</index>
</table>
<table name="eav_entity_datetime" resource="default" engine="innodb" comment="Eav Entity Value Prefix">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="entity_type_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Entity Type ID"/>
Expand Down Expand Up @@ -114,7 +114,7 @@
</index>
</table>
<table name="eav_entity_decimal" resource="default" engine="innodb" comment="Eav Entity Value Prefix">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="entity_type_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Entity Type ID"/>
Expand Down Expand Up @@ -155,7 +155,7 @@
</index>
</table>
<table name="eav_entity_int" resource="default" engine="innodb" comment="Eav Entity Value Prefix">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="entity_type_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Entity Type ID"/>
Expand Down Expand Up @@ -195,7 +195,7 @@
</index>
</table>
<table name="eav_entity_text" resource="default" engine="innodb" comment="Eav Entity Value Prefix">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="entity_type_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Entity Type ID"/>
Expand Down Expand Up @@ -232,7 +232,7 @@
</index>
</table>
<table name="eav_entity_varchar" resource="default" engine="innodb" comment="Eav Entity Value Prefix">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="entity_type_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Entity Type ID"/>
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/LoginAsCustomerLog/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
-->
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="magento_login_as_customer_log" resource="default" engine="innodb" comment="Login as Customer Logging">
<column xsi:type="int" name="log_id" unsigned="false" nullable="false" identity="true" comment="Log Id"/>
<column xsi:type="int" name="log_id" unsigned="true" nullable="false" identity="true" comment="Log Id"/>
<column xsi:type="timestamp" name="time" on_update="false" nullable="true" comment="Event Date"/>
<column xsi:type="int" name="user_id" unsigned="true" nullable="true" identity="false" comment="User Id"/>
<column xsi:type="varchar" name="user_name" nullable="true" length="40" comment="User Name"/>
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Weee/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="weee_tax" resource="default" engine="innodb" comment="Weee Tax">
<column xsi:type="int" name="value_id" unsigned="false" nullable="false" identity="true"
<column xsi:type="int" name="value_id" unsigned="true" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="smallint" name="website_id" unsigned="true" nullable="false" identity="false"
default="0" comment="Website ID"/>
Expand Down