Skip to content
Merged
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
38 changes: 19 additions & 19 deletions app/code/Magento/Bundle/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@
<table name="catalog_product_bundle_price_index" resource="default" engine="innodb"
comment="Catalog Product Bundle Price Index">
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
comment="Entity Id"/>
comment="Entity ID"/>
<column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
comment="Website Id"/>
<column xsi:type="int" name="customer_group_id" padding="10" unsigned="true" nullable="false" identity="false"
comment="Customer Group Id"/>
comment="Customer Group ID"/>
<column xsi:type="decimal" name="min_price" scale="4" precision="12" unsigned="false" nullable="false"
comment="Min Price"/>
<column xsi:type="decimal" name="max_price" scale="4" precision="12" unsigned="false" nullable="false"
Expand Down Expand Up @@ -153,11 +153,11 @@
<table name="catalog_product_bundle_stock_index" resource="default" engine="innodb"
comment="Catalog Product Bundle Stock Index">
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
comment="Entity Id"/>
comment="Entity ID"/>
<column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
comment="Website Id"/>
comment="Website ID"/>
<column xsi:type="smallint" name="stock_id" padding="5" unsigned="true" nullable="false" identity="false"
comment="Stock Id"/>
comment="Stock ID"/>
<column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0" comment="Option Id"/>
<column xsi:type="smallint" name="stock_status" padding="6" unsigned="false" nullable="true" identity="false"
Expand All @@ -172,13 +172,13 @@
<table name="catalog_product_index_price_bundle_idx" resource="default" engine="innodb"
comment="Catalog Product Index Price Bundle Idx">
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
comment="Entity Id"/>
comment="Entity ID"/>
<column xsi:type="int" name="customer_group_id" padding="11" unsigned="false" nullable="false"
identity="false"/>
<column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
comment="Website Id"/>
comment="Website ID"/>
<column xsi:type="smallint" name="tax_class_id" padding="5" unsigned="true" nullable="true" identity="false"
default="0" comment="Tax Class Id"/>
default="0" comment="Tax Class ID"/>
<column xsi:type="smallint" name="price_type" padding="5" unsigned="true" nullable="false" identity="false"
comment="Price Type"/>
<column xsi:type="decimal" name="special_price" scale="4" precision="12" unsigned="false" nullable="true"
Expand Down Expand Up @@ -206,13 +206,13 @@
<table name="catalog_product_index_price_bundle_tmp" resource="default" engine="memory"
comment="Catalog Product Index Price Bundle Tmp">
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
comment="Entity Id"/>
comment="Entity ID"/>
<column xsi:type="int" name="customer_group_id" padding="11" unsigned="false" nullable="false"
identity="false"/>
<column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
comment="Website Id"/>
comment="Website ID"/>
<column xsi:type="smallint" name="tax_class_id" padding="5" unsigned="true" nullable="true" identity="false"
default="0" comment="Tax Class Id"/>
default="0" comment="Tax Class ID"/>
<column xsi:type="smallint" name="price_type" padding="5" unsigned="true" nullable="false" identity="false"
comment="Price Type"/>
<column xsi:type="decimal" name="special_price" scale="4" precision="12" unsigned="false" nullable="true"
Expand Down Expand Up @@ -240,11 +240,11 @@
<table name="catalog_product_index_price_bundle_sel_idx" resource="default" engine="innodb"
comment="Catalog Product Index Price Bundle Sel Idx">
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
comment="Entity Id"/>
comment="Entity ID"/>
<column xsi:type="int" name="customer_group_id" padding="11" unsigned="false" nullable="false"
identity="false"/>
<column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
comment="Website Id"/>
comment="Website ID"/>
<column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0" comment="Option Id"/>
<column xsi:type="int" name="selection_id" padding="10" unsigned="true" nullable="false" identity="false"
Expand All @@ -268,11 +268,11 @@
<table name="catalog_product_index_price_bundle_sel_tmp" resource="default" engine="memory"
comment="Catalog Product Index Price Bundle Sel Tmp">
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
comment="Entity Id"/>
comment="Entity ID"/>
<column xsi:type="int" name="customer_group_id" padding="11" unsigned="false" nullable="false"
identity="false"/>
<column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
comment="Website Id"/>
comment="Website ID"/>
<column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0" comment="Option Id"/>
<column xsi:type="int" name="selection_id" padding="10" unsigned="true" nullable="false" identity="false"
Expand All @@ -296,11 +296,11 @@
<table name="catalog_product_index_price_bundle_opt_idx" resource="default" engine="innodb"
comment="Catalog Product Index Price Bundle Opt Idx">
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
comment="Entity Id"/>
comment="Entity ID"/>
<column xsi:type="int" name="customer_group_id" padding="11" unsigned="false" nullable="false"
identity="false"/>
<column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
comment="Website Id"/>
comment="Website ID"/>
<column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0" comment="Option Id"/>
<column xsi:type="decimal" name="min_price" scale="4" precision="12" unsigned="false" nullable="true"
Expand All @@ -323,11 +323,11 @@
<table name="catalog_product_index_price_bundle_opt_tmp" resource="default" engine="memory"
comment="Catalog Product Index Price Bundle Opt Tmp">
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
comment="Entity Id"/>
comment="Entity ID"/>
<column xsi:type="int" name="customer_group_id" padding="11" unsigned="false" nullable="false"
identity="false"/>
<column xsi:type="smallint" name="website_id" padding="5" unsigned="true" nullable="false" identity="false"
comment="Website Id"/>
comment="Website ID"/>
<column xsi:type="int" name="option_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0" comment="Option Id"/>
<column xsi:type="decimal" name="min_price" scale="4" precision="12" unsigned="false" nullable="true"
Expand Down
33 changes: 17 additions & 16 deletions app/code/Magento/Catalog/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="catalog_product_entity" resource="default" engine="innodb" comment="Catalog Product Table">
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="true"
comment="Entity Id"/>
comment="Entity ID"/>
<column xsi:type="smallint" name="attribute_set_id" padding="5" unsigned="true" nullable="false"
identity="false" default="0" comment="Attribute Set ID"/>
<column xsi:type="varchar" name="type_id" nullable="false" length="32" default="simple" comment="Type ID"/>
Expand Down Expand Up @@ -41,7 +41,7 @@
<column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Store ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0"/>
default="0" comment="Entity ID"/>
<column xsi:type="datetime" name="value" on_update="false" nullable="true" comment="Value"/>
<constraint xsi:type="primary" name="PRIMARY">
<column name="value_id"/>
Expand Down Expand Up @@ -76,7 +76,7 @@
<column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Store ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0"/>
default="0" comment="Entity ID"/>
<column xsi:type="decimal" name="value" scale="4" precision="12" unsigned="false" nullable="true"
comment="Value"/>
<constraint xsi:type="primary" name="PRIMARY">
Expand Down Expand Up @@ -112,7 +112,7 @@
<column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Store ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0"/>
default="0" comment="Entity ID"/>
<column xsi:type="int" name="value" padding="11" unsigned="false" nullable="true" identity="false"
comment="Value"/>
<constraint xsi:type="primary" name="PRIMARY">
Expand Down Expand Up @@ -148,7 +148,7 @@
<column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Store ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0"/>
default="0" comment="Entity ID"/>
<column xsi:type="text" name="value" nullable="true" comment="Value"/>
<constraint xsi:type="primary" name="PRIMARY">
<column name="value_id"/>
Expand Down Expand Up @@ -183,7 +183,7 @@
<column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Store ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0"/>
default="0" comment="Entity ID"/>
<column xsi:type="varchar" name="value" nullable="true" length="255" comment="Value"/>
<constraint xsi:type="primary" name="PRIMARY">
<column name="value_id"/>
Expand Down Expand Up @@ -218,7 +218,7 @@
<column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Store ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0"/>
default="0" comment="Entity ID"/>
<column xsi:type="int" name="position" padding="11" unsigned="false" nullable="false" identity="false"
default="0" comment="Position"/>
<column xsi:type="varchar" name="value" nullable="true" length="255" comment="Value"/>
Expand Down Expand Up @@ -251,7 +251,7 @@
</table>
<table name="catalog_category_entity" resource="default" engine="innodb" comment="Catalog Category Table">
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="true"
comment="Entity Id"/>
comment="Entity ID"/>
<column xsi:type="smallint" name="attribute_set_id" padding="5" unsigned="true" nullable="false"
identity="false" default="0" comment="Attribute Set ID"/>
<column xsi:type="int" name="parent_id" padding="10" unsigned="true" nullable="false" identity="false"
Expand Down Expand Up @@ -286,7 +286,7 @@
<column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Store ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0"/>
default="0" comment="Entity ID"/>
<column xsi:type="datetime" name="value" on_update="false" nullable="true" comment="Value"/>
<constraint xsi:type="primary" name="PRIMARY">
<column name="value_id"/>
Expand Down Expand Up @@ -324,7 +324,7 @@
<column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Store ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0"/>
default="0" comment="Entity ID"/>
<column xsi:type="decimal" name="value" scale="4" precision="12" unsigned="false" nullable="true"
comment="Value"/>
<constraint xsi:type="primary" name="PRIMARY">
Expand Down Expand Up @@ -363,7 +363,7 @@
<column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Store ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0"/>
default="0" comment="Entity ID"/>
<column xsi:type="int" name="value" padding="11" unsigned="false" nullable="true" identity="false"
comment="Value"/>
<constraint xsi:type="primary" name="PRIMARY">
Expand Down Expand Up @@ -402,7 +402,7 @@
<column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Store ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0"/>
default="0" comment="Entity ID"/>
<column xsi:type="text" name="value" nullable="true" comment="Value"/>
<constraint xsi:type="primary" name="PRIMARY">
<column name="value_id"/>
Expand Down Expand Up @@ -440,7 +440,7 @@
<column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Store ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0"/>
default="0" comment="Entity ID"/>
<column xsi:type="varchar" name="value" nullable="true" length="255" comment="Value"/>
<constraint xsi:type="primary" name="PRIMARY">
<column name="value_id"/>
Expand Down Expand Up @@ -738,7 +738,7 @@
<column xsi:type="int" name="value_id" padding="11" unsigned="false" nullable="false" identity="true"
comment="Value ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0"/>
default="0" comment="Entity ID"/>
<column xsi:type="smallint" name="all_groups" padding="5" unsigned="true" nullable="false" identity="false"
default="1" comment="Is Applicable To All Customer Groups"/>
<column xsi:type="int" name="customer_group_id" padding="10" unsigned="true" nullable="false" identity="false"
Expand Down Expand Up @@ -805,7 +805,7 @@
<column xsi:type="smallint" name="store_id" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Store ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0"/>
default="0" comment="Entity ID"/>
<column xsi:type="varchar" name="label" nullable="true" length="255" comment="Label"/>
<column xsi:type="int" name="position" padding="10" unsigned="true" nullable="true" identity="false"
comment="Position"/>
Expand Down Expand Up @@ -1651,7 +1651,8 @@
comment="Link Media value to Product entity table">
<column xsi:type="int" name="value_id" padding="10" unsigned="true" nullable="false" identity="false"
comment="Value media Entry ID"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"/>
<column xsi:type="int" name="entity_id" padding="10" unsigned="true" nullable="false" identity="false"
comment="Product Entity ID"/>
<constraint xsi:type="foreign" name="FK_A6C6C8FAA386736921D3A7C4B50B1185"
table="catalog_product_entity_media_gallery_value_to_entity" column="value_id"
referenceTable="catalog_product_entity_media_gallery" referenceColumn="value_id"
Expand Down
Loading