init
This commit is contained in:
+114
@@ -0,0 +1,114 @@
|
||||
<?xml version="1.0"?>
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="module8_test_main_table" resource="default" engine="innodb" comment="Main Test Table for Module8">
|
||||
<column xsi:type="int" name="module8_email_contact_id" padding="10" unsigned="true" nullable="false"
|
||||
identity="true" comment="Email Contact ID"/>
|
||||
<column xsi:type="int" name="module8_contact_group_id" padding="10" unsigned="true" nullable="false"
|
||||
identity="false" comment="Contact Group ID"/>
|
||||
<column xsi:type="smallint" name="module8_is_guest" padding="5" unsigned="true" nullable="true"
|
||||
identity="false" comment="Is Guest"/>
|
||||
<column xsi:type="varchar" name="module8_contact_id" nullable="true" length="15" comment="Contact ID"/>
|
||||
<column xsi:type="varchar" name="module8_content" nullable="false" length="15" comment="Content"/>
|
||||
<column xsi:type="int" name="module8_update_column" padding="11" unsigned="false" nullable="false"
|
||||
identity="false" comment="Module_8 Update Column"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_email_contact_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="unique" referenceId="MODULE8_INSTALL_UNIQUE_INDEX_2">
|
||||
<column name="module8_email_contact_id"/>
|
||||
<column name="module8_is_guest"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="unique" referenceId="MODULE8_INSTALL_UNIQUE_INDEX_TEMP" disabled="true">
|
||||
<column name="module8_contact_group_id"/>
|
||||
</constraint>
|
||||
<index referenceId="MODULE8_INSTALL_INDEX_1" indexType="btree">
|
||||
<column name="module8_email_contact_id"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_INDEX_3" indexType="btree">
|
||||
<column name="module8_is_guest"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_INDEX_4" indexType="btree">
|
||||
<column name="module8_contact_id"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_INDEX_TEMP" indexType="btree" disabled="true">
|
||||
<column name="module8_content"/>
|
||||
</index>
|
||||
</table>
|
||||
<table name="module8_test_second_table" resource="default" engine="innodb" comment="Second Test Table for Module8">
|
||||
<column xsi:type="int" name="module8_entity_id" padding="10" unsigned="true" nullable="false" identity="true"
|
||||
comment="Entity ID"/>
|
||||
<column xsi:type="int" name="module8_contact_id" padding="11" unsigned="false" nullable="true"
|
||||
identity="false" comment="Contact ID"/>
|
||||
<column xsi:type="varchar" name="module8_address" nullable="false" length="15" comment="Address"/>
|
||||
<column xsi:type="smallint" name="module8_counter_with_multiline_comment" padding="5" unsigned="true"
|
||||
nullable="true" identity="false" default="0"
|
||||
comment="Empty Counter Multiline Comment"/>
|
||||
<column xsi:type="varchar" name="module8_second_address" nullable="true" length="15" comment="Second Address"/>
|
||||
<column xsi:type="varchar" name="module8_temp_column" nullable="true" length="15"
|
||||
comment="Temp column for remove" disabled="true"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_entity_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_INSTALL_FK_ENTITY_ID_TEST_MAIN_TABLE_EMAIL_CONTACT_ID"
|
||||
table="module8_test_second_table" column="module8_entity_id"
|
||||
referenceTable="module8_test_main_table" referenceColumn="module8_email_contact_id"
|
||||
onDelete="NO ACTION"/>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_INSTALL_FK_ADDRESS_TEST_MAIN_TABLE_CONTACT_ID"
|
||||
table="module8_test_second_table" column="module8_address" referenceTable="module8_test_main_table"
|
||||
referenceColumn="module8_contact_id" onDelete="NO ACTION"/>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_INSTALL_FK_ADDRESS_TEST_MAIN_TABLE_MODULE8_CONTENT_TEMP"
|
||||
table="module8_test_second_table" column="module8_address" referenceTable="module8_test_main_table"
|
||||
referenceColumn="module8_content" onDelete="NO ACTION" disabled="true"/>
|
||||
<index referenceId="MODULE8_INSTALL_SECOND_TABLE_INDEX_1" indexType="btree">
|
||||
<column name="module8_entity_id"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_SECOND_TABLE_INDEX_2" indexType="btree">
|
||||
<column name="module8_address"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_SECOND_TABLE_INDEX_3_TEMP" indexType="btree">
|
||||
<column name="module8_second_address"/>
|
||||
</index>
|
||||
</table>
|
||||
<table name="module8_test_update_table" resource="default" engine="innodb" comment="Update Test Table for Module8">
|
||||
<column xsi:type="int" name="module8_entity_id" padding="10" unsigned="true" nullable="false" identity="false"
|
||||
comment="Entity ID"/>
|
||||
<column xsi:type="int" name="module8_entity_row_id" padding="10" unsigned="true" nullable="false"
|
||||
identity="false" comment="Module8_entity_row_id"/>
|
||||
<column xsi:type="smallint" name="module8_is_guest" padding="5" unsigned="true" nullable="true"
|
||||
identity="false" comment="Is Guest"/>
|
||||
<column xsi:type="smallint" name="module8_guest_browser_id" padding="5" unsigned="true" nullable="true"
|
||||
identity="false" comment="Guest Browser ID"/>
|
||||
<column xsi:type="smallint" name="module8_column_for_remove" padding="5" unsigned="true" nullable="true"
|
||||
identity="false" comment="For remove"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_entity_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_UPDATE_FK_MODULE8_IS_GUEST"
|
||||
table="module8_test_update_table" column="module8_is_guest" referenceTable="module8_test_main_table"
|
||||
referenceColumn="module8_is_guest" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_UPDATE_FK_TEMP" table="module8_test_update_table"
|
||||
column="module8_column_for_remove" referenceTable="module8_test_main_table"
|
||||
referenceColumn="module8_is_guest" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="unique" referenceId="MODULE8_UPDATE_UNIQUE_INDEX_TEMP">
|
||||
<column name="module8_entity_id"/>
|
||||
<column name="module8_is_guest"/>
|
||||
</constraint>
|
||||
<index referenceId="MODULE8_UPDATE_IS_GUEST_INDEX" indexType="btree">
|
||||
<column name="module8_is_guest"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_UPDATE_TEMP_INDEX" indexType="btree">
|
||||
<column name="module8_column_for_remove"/>
|
||||
<column name="module8_guest_browser_id"/>
|
||||
</index>
|
||||
</table>
|
||||
<table name="module8_test_temp_table" resource="default" engine="innodb" comment="module8_test_temp_table">
|
||||
<column xsi:type="int" name="module8_entity_id" padding="10" unsigned="true" nullable="false" identity="true"
|
||||
comment="Entity ID"/>
|
||||
<column xsi:type="int" name="module8_counter" padding="10" unsigned="true" nullable="true" identity="false"
|
||||
default="100" comment="Counter"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_entity_id"/>
|
||||
</constraint>
|
||||
</table>
|
||||
</schema>
|
||||
+68
@@ -0,0 +1,68 @@
|
||||
<?xml version="1.0"?>
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="module9_test_main_table" resource="default" engine="innodb" comment="Main Test Table for Module9">
|
||||
<column xsi:type="int" name="module9_email_contact_id" padding="10" unsigned="true" nullable="false"
|
||||
identity="true" comment="Entity ID"/>
|
||||
<column xsi:type="smallint" name="module9_is_guest" padding="5" unsigned="true" nullable="true"
|
||||
identity="false" comment="Is Guest"/>
|
||||
<column xsi:type="int" name="module9_guest_id" padding="10" unsigned="true" nullable="true" identity="false"
|
||||
comment="Guest ID"/>
|
||||
<column xsi:type="date" name="module9_created_at" comment="Created At"/>
|
||||
<column xsi:type="int" name="module9_update_column" padding="11" unsigned="false" nullable="false"
|
||||
identity="false" comment="Module_9 Update Column"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module9_email_contact_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="unique" referenceId="MODULE9_INSTALL_UNIQUE_INDEX_1">
|
||||
<column name="module9_email_contact_id"/>
|
||||
<column name="module9_guest_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE9_UPDATE_FK_MODULE9_IS_GUEST" table="module9_test_main_table"
|
||||
column="module9_is_guest" referenceTable="module8_test_main_table"
|
||||
referenceColumn="module8_is_guest" onDelete="CASCADE"/>
|
||||
</table>
|
||||
<table name="module8_test_main_table" resource="default">
|
||||
<column xsi:type="int" name="module9_update_column" padding="11" unsigned="false" nullable="false"
|
||||
identity="false" comment="Module_9 Update Column"/>
|
||||
</table>
|
||||
<table name="module8_test_update_table" resource="default">
|
||||
<column name="module8_column_for_remove" disabled="true"/>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_UPDATE_FK_TEMP" disabled="true"/>
|
||||
<index referenceId="MODULE9_UPDATE_MODULE8_GUEST_BROWSER_ID" indexType="btree">
|
||||
<column name="module8_guest_browser_id"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_UPDATE_UNIQUE_INDEX_TEMP" disabled="true"/>
|
||||
</table>
|
||||
<table name="module8_test_second_table" resource="default">
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_INSTALL_FK_ADDRESS_TEST_MAIN_TABLE_CONTACT_ID"
|
||||
disabled="true"/>
|
||||
<index referenceId="MODULE8_INSTALL_SECOND_TABLE_INDEX_3_TEMP" disabled="true"/>
|
||||
</table>
|
||||
<table name="module8_test_temp_table" disabled="true" resource="default"/>
|
||||
<table name="module9_test_update_replica_table" resource="default" engine="innodb"
|
||||
comment="Module9 Test Update Replica Table">
|
||||
<column xsi:type="int" name="module8_entity_id" padding="10" unsigned="true" nullable="false" identity="true"
|
||||
comment="Module8 Entity Id"/>
|
||||
<column xsi:type="int" name="module8_contact_id" padding="11" unsigned="false" nullable="true"
|
||||
identity="false" comment="Module8 Contact Id"/>
|
||||
<column xsi:type="varchar" name="module8_address" nullable="false" length="15" comment="Module8 Address"/>
|
||||
<column xsi:type="smallint" name="module8_counter_with_multiline_comment" padding="5" unsigned="true"
|
||||
nullable="true" identity="false" default="0" comment="Module8 Counter With Multiline Comment"/>
|
||||
<column xsi:type="varchar" name="module8_second_address" nullable="true" length="15"
|
||||
comment="Module8 Second Address"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_entity_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="foreign" referenceId="FK_8914AF398964FAFB4ED2E382866ABBF4"
|
||||
table="module9_test_update_replica_table" column="module8_entity_id"
|
||||
referenceTable="module8_test_main_table" referenceColumn="module8_email_contact_id"
|
||||
onDelete="NO ACTION"/>
|
||||
<index referenceId="MODULE9_TEST_UPDATE_REPLICA_TABLE_MODULE8_ENTITY_ID" indexType="btree">
|
||||
<column name="module8_entity_id"/>
|
||||
</index>
|
||||
<index referenceId="MODULE9_TEST_UPDATE_REPLICA_TABLE_MODULE8_ADDRESS" indexType="btree">
|
||||
<column name="module8_address"/>
|
||||
</index>
|
||||
</table>
|
||||
</schema>
|
||||
+81
@@ -0,0 +1,81 @@
|
||||
<?xml version="1.0"?>
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="module8_test_main_table" resource="default" engine="innodb" comment="Main Test Table for Module8">
|
||||
<column xsi:type="int" name="module8_email_contact_id" padding="10" unsigned="true" nullable="false"
|
||||
identity="true" comment="Email Contact ID"/>
|
||||
<column xsi:type="int" name="module8_contact_group_id" padding="10" unsigned="true" nullable="false"
|
||||
identity="false" comment="Contact Group ID"/>
|
||||
<column xsi:type="smallint" name="module8_is_guest" padding="5" unsigned="true" nullable="true"
|
||||
identity="false" comment="Is Guest"/>
|
||||
<column xsi:type="varchar" name="module8_contact_id" nullable="true" length="15" comment="Contact ID"/>
|
||||
<column xsi:type="varchar" name="module8_content" nullable="false" length="15" comment="Content"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_email_contact_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="unique" referenceId="MODULE8_INSTALL_UNIQUE_INDEX_2">
|
||||
<column name="module8_email_contact_id"/>
|
||||
<column name="module8_is_guest"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="unique" referenceId="MODULE8_INSTALL_UNIQUE_INDEX_TEMP">
|
||||
<column name="module8_contact_group_id"/>
|
||||
</constraint>
|
||||
<index referenceId="MODULE8_INSTALL_INDEX_1" indexType="btree">
|
||||
<column name="module8_email_contact_id"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_INDEX_3" indexType="btree">
|
||||
<column name="module8_is_guest"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_INDEX_4" indexType="btree">
|
||||
<column name="module8_contact_id"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_INDEX_TEMP" indexType="btree">
|
||||
<column name="module8_content"/>
|
||||
</index>
|
||||
</table>
|
||||
<table name="module8_test_second_table" resource="default" engine="innodb" comment="Second Test Table for Module8">
|
||||
<column xsi:type="int" name="module8_entity_id" padding="10" unsigned="true" nullable="false" identity="true"
|
||||
comment="Entity ID"/>
|
||||
<column xsi:type="int" name="module8_contact_id" padding="11" unsigned="false" nullable="true"
|
||||
identity="false" comment="Contact ID"/>
|
||||
<column xsi:type="varchar" name="module8_address" nullable="false" length="15" comment="Address"/>
|
||||
<column xsi:type="smallint" name="module8_counter_with_multiline_comment" padding="5" unsigned="true"
|
||||
nullable="true" identity="false" default="0"
|
||||
comment="Empty Counter Multiline Comment"/>
|
||||
<column xsi:type="varchar" name="module8_second_address" nullable="true" length="15" comment="Second Address"/>
|
||||
<column xsi:type="varchar" name="module8_temp_column" nullable="true" length="15"
|
||||
comment="Temp column for remove"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_entity_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_INSTALL_FK_ENTITY_ID_TEST_MAIN_TABLE_EMAIL_CONTACT_ID"
|
||||
table="module8_test_second_table" column="module8_entity_id"
|
||||
referenceTable="module8_test_main_table" referenceColumn="module8_email_contact_id"
|
||||
onDelete="NO ACTION"/>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_INSTALL_FK_ADDRESS_TEST_MAIN_TABLE_CONTACT_ID"
|
||||
table="module8_test_second_table" column="module8_address" referenceTable="module8_test_main_table"
|
||||
referenceColumn="module8_contact_id" onDelete="NO ACTION"/>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_INSTALL_FK_ADDRESS_TEST_MAIN_TABLE_MODULE8_CONTENT_TEMP"
|
||||
table="module8_test_second_table" column="module8_address" referenceTable="module8_test_main_table"
|
||||
referenceColumn="module8_content" onDelete="NO ACTION"/>
|
||||
<index referenceId="MODULE8_INSTALL_SECOND_TABLE_INDEX_1" indexType="btree">
|
||||
<column name="module8_entity_id"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_SECOND_TABLE_INDEX_2" indexType="btree">
|
||||
<column name="module8_address"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_SECOND_TABLE_INDEX_3_TEMP" indexType="btree">
|
||||
<column name="module8_second_address"/>
|
||||
</index>
|
||||
</table>
|
||||
<table name="module8_test_install_temp_table" resource="default" engine="innodb"
|
||||
comment="module8_test_install_temp_table">
|
||||
<column xsi:type="int" name="module8_entity_id" padding="10" unsigned="true" nullable="false" identity="true"
|
||||
comment="Entity ID"/>
|
||||
<column xsi:type="int" name="module8_counter" padding="10" unsigned="true" nullable="true" identity="false"
|
||||
default="100" comment="Counter"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_entity_id"/>
|
||||
</constraint>
|
||||
</table>
|
||||
</schema>
|
||||
+124
@@ -0,0 +1,124 @@
|
||||
<?xml version="1.0"?>
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="module8_test_main_table" resource="default" engine="innodb" comment="Main Test Table for Module8">
|
||||
<column xsi:type="int" name="module8_email_contact_id" padding="10" unsigned="true" nullable="false"
|
||||
identity="true" comment="Email Contact ID"/>
|
||||
<column xsi:type="int" name="module8_contact_group_id" padding="10" unsigned="true" nullable="false"
|
||||
identity="false" comment="Contact Group ID"/>
|
||||
<column xsi:type="smallint" name="module8_is_guest" padding="5" unsigned="true" nullable="true"
|
||||
identity="false" comment="Is Guest"/>
|
||||
<column xsi:type="varchar" name="module8_contact_id" nullable="true" length="15" comment="Contact ID"/>
|
||||
<column xsi:type="varchar" name="module8_content" nullable="false" length="15" comment="Content"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_email_contact_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="unique" referenceId="MODULE8_INSTALL_UNIQUE_INDEX_2">
|
||||
<column name="module8_email_contact_id"/>
|
||||
<column name="module8_is_guest"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="unique" referenceId="MODULE8_INSTALL_UNIQUE_INDEX_TEMP" disabled="true">
|
||||
<column name="module8_contact_group_id"/>
|
||||
</constraint>
|
||||
<index referenceId="MODULE8_INSTALL_INDEX_1" indexType="btree">
|
||||
<column name="module8_email_contact_id"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_INDEX_3" indexType="btree">
|
||||
<column name="module8_is_guest"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_INDEX_4" indexType="btree">
|
||||
<column name="module8_contact_id"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_INDEX_TEMP" indexType="btree" disabled="true">
|
||||
<column name="module8_content"/>
|
||||
</index>
|
||||
<column xsi:type="int" name="module8_update_column" padding="11" unsigned="false" nullable="false"
|
||||
identity="false" comment="Module_8 Update Column"/>
|
||||
</table>
|
||||
<table name="module8_test_second_table" resource="default" engine="innodb" comment="Second Test Table for Module8">
|
||||
<column xsi:type="int" name="module8_entity_id" padding="10" unsigned="true" nullable="false" identity="true"
|
||||
comment="Entity ID"/>
|
||||
<column xsi:type="int" name="module8_contact_id" padding="11" unsigned="false" nullable="true"
|
||||
identity="false" comment="Contact ID"/>
|
||||
<column xsi:type="varchar" name="module8_address" nullable="false" length="15" comment="Address"/>
|
||||
<column xsi:type="smallint" name="module8_counter_with_multiline_comment" padding="5" unsigned="true"
|
||||
nullable="true" identity="false" default="0"
|
||||
comment="Empty Counter Multiline Comment"/>
|
||||
<column xsi:type="varchar" name="module8_second_address" nullable="true" length="15" comment="Second Address"/>
|
||||
<column xsi:type="varchar" name="module8_temp_column" nullable="true" length="15"
|
||||
comment="Temp column for remove" disabled="true"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_entity_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_INSTALL_FK_ENTITY_ID_TEST_MAIN_TABLE_EMAIL_CONTACT_ID"
|
||||
table="module8_test_second_table" column="module8_entity_id"
|
||||
referenceTable="module8_test_main_table" referenceColumn="module8_email_contact_id"
|
||||
onDelete="NO ACTION"/>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_INSTALL_FK_ADDRESS_TEST_MAIN_TABLE_CONTACT_ID"
|
||||
table="module8_test_second_table" column="module8_address" referenceTable="module8_test_main_table"
|
||||
referenceColumn="module8_contact_id" onDelete="NO ACTION"/>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_INSTALL_FK_ADDRESS_TEST_MAIN_TABLE_MODULE8_CONTENT_TEMP"
|
||||
table="module8_test_second_table" column="module8_address" referenceTable="module8_test_main_table"
|
||||
referenceColumn="module8_content" onDelete="NO ACTION" disabled="true"/>
|
||||
<index referenceId="MODULE8_INSTALL_SECOND_TABLE_INDEX_1" indexType="btree">
|
||||
<column name="module8_entity_id"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_SECOND_TABLE_INDEX_2" indexType="btree">
|
||||
<column name="module8_address"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_INSTALL_SECOND_TABLE_INDEX_3_TEMP" indexType="btree">
|
||||
<column name="module8_second_address"/>
|
||||
</index>
|
||||
</table>
|
||||
<table name="module8_test_install_temp_table" resource="default" engine="innodb"
|
||||
comment="module8_test_install_temp_table" disabled="true">
|
||||
<column xsi:type="int" name="module8_entity_id" padding="10" unsigned="true" nullable="false" identity="true"
|
||||
comment="Entity ID"/>
|
||||
<column xsi:type="int" name="module8_counter" padding="10" unsigned="true" nullable="true" identity="false"
|
||||
default="100" comment="Counter"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_entity_id"/>
|
||||
</constraint>
|
||||
</table>
|
||||
<table name="module8_test_update_table" resource="default" engine="innodb" comment="Update Test Table for Module8">
|
||||
<column xsi:type="int" name="module8_entity_id" padding="10" unsigned="true" nullable="false" identity="false"
|
||||
comment="Entity ID"/>
|
||||
<column xsi:type="int" name="module8_entity_row_id" padding="10" unsigned="true" nullable="false"
|
||||
identity="false" comment="Module8_entity_row_id"/>
|
||||
<column xsi:type="smallint" name="module8_is_guest" padding="5" unsigned="true" nullable="true"
|
||||
identity="false" comment="Is Guest"/>
|
||||
<column xsi:type="smallint" name="module8_guest_browser_id" padding="5" unsigned="true" nullable="true"
|
||||
identity="false" comment="Guest Browser ID"/>
|
||||
<column xsi:type="smallint" name="module8_column_for_remove" padding="5" unsigned="true" nullable="true"
|
||||
identity="false" comment="For remove"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_entity_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_UPDATE_FK_MODULE8_IS_GUEST"
|
||||
table="module8_test_update_table" column="module8_is_guest" referenceTable="module8_test_main_table"
|
||||
referenceColumn="module8_is_guest" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_UPDATE_FK_TEMP" table="module8_test_update_table"
|
||||
column="module8_column_for_remove" referenceTable="module8_test_main_table"
|
||||
referenceColumn="module8_is_guest" onDelete="CASCADE"/>
|
||||
<constraint xsi:type="unique" referenceId="MODULE8_UPDATE_UNIQUE_INDEX_TEMP">
|
||||
<column name="module8_entity_id"/>
|
||||
<column name="module8_is_guest"/>
|
||||
</constraint>
|
||||
<index referenceId="MODULE8_UPDATE_IS_GUEST_INDEX" indexType="btree">
|
||||
<column name="module8_is_guest"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_UPDATE_TEMP_INDEX" indexType="btree">
|
||||
<column name="module8_column_for_remove"/>
|
||||
<column name="module8_guest_browser_id"/>
|
||||
</index>
|
||||
</table>
|
||||
<table name="module8_test_temp_table" resource="default" engine="innodb" comment="module8_test_temp_table">
|
||||
<column xsi:type="int" name="module8_entity_id" padding="10" unsigned="true" nullable="false" identity="true"
|
||||
comment="Entity ID"/>
|
||||
<column xsi:type="int" name="module8_counter" padding="10" unsigned="true" nullable="true" identity="false"
|
||||
default="100" comment="Counter"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_entity_id"/>
|
||||
</constraint>
|
||||
</table>
|
||||
</schema>
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="module9_test_main_table" resource="default" engine="innodb" comment="Main Test Table for Module9">
|
||||
<column xsi:type="int" name="module9_email_contact_id" padding="10" unsigned="true" nullable="false"
|
||||
identity="true" comment="Entity ID"/>
|
||||
<column xsi:type="smallint" name="module9_is_guest" padding="5" unsigned="true" nullable="true"
|
||||
identity="false" comment="Is Guest"/>
|
||||
<column xsi:type="int" name="module9_guest_id" padding="10" unsigned="true" nullable="true" identity="false"
|
||||
comment="Guest ID"/>
|
||||
<column xsi:type="date" name="module9_created_at" comment="Created At"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module9_email_contact_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="unique" referenceId="MODULE9_INSTALL_UNIQUE_INDEX_1">
|
||||
<column name="module9_email_contact_id"/>
|
||||
<column name="module9_guest_id"/>
|
||||
</constraint>
|
||||
</table>
|
||||
</schema>
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
<?xml version="1.0"?>
|
||||
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
|
||||
<table name="module9_test_main_table" resource="default" engine="innodb" comment="Main Test Table for Module9">
|
||||
<column xsi:type="int" name="module9_email_contact_id" padding="10" unsigned="true" nullable="false"
|
||||
identity="true" comment="Entity ID"/>
|
||||
<column xsi:type="smallint" name="module9_is_guest" padding="5" unsigned="true" nullable="true"
|
||||
identity="false" comment="Is Guest"/>
|
||||
<column xsi:type="int" name="module9_guest_id" padding="10" unsigned="true" nullable="true" identity="false"
|
||||
comment="Guest ID"/>
|
||||
<column xsi:type="date" name="module9_created_at" comment="Created At"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module9_email_contact_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="unique" referenceId="MODULE9_INSTALL_UNIQUE_INDEX_1">
|
||||
<column name="module9_email_contact_id"/>
|
||||
<column name="module9_guest_id"/>
|
||||
</constraint>
|
||||
<column xsi:type="int" name="module9_update_column" padding="11" unsigned="false" nullable="false"
|
||||
identity="false" comment="Module_9 Update Column"/>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE9_UPDATE_FK_MODULE9_IS_GUEST" table="module9_test_main_table"
|
||||
column="module9_is_guest" referenceTable="module8_test_main_table"
|
||||
referenceColumn="module8_is_guest" onDelete="CASCADE"/>
|
||||
</table>
|
||||
<table name="module8_test_main_table" resource="default">
|
||||
<column xsi:type="int" name="module9_update_column" padding="11" unsigned="false" nullable="false"
|
||||
identity="false" comment="Module_9 Update Column"/>
|
||||
</table>
|
||||
<table name="module8_test_update_table" resource="default">
|
||||
<column name="module8_column_for_remove" disabled="true"/>
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_UPDATE_FK_TEMP" disabled="true"/>
|
||||
<index referenceId="MODULE9_UPDATE_MODULE8_GUEST_BROWSER_ID" indexType="btree">
|
||||
<column name="module8_guest_browser_id"/>
|
||||
</index>
|
||||
<index referenceId="MODULE8_UPDATE_UNIQUE_INDEX_TEMP" disabled="true"/>
|
||||
</table>
|
||||
<table name="module8_test_second_table" resource="default">
|
||||
<constraint xsi:type="foreign" referenceId="MODULE8_INSTALL_FK_ADDRESS_TEST_MAIN_TABLE_CONTACT_ID"
|
||||
disabled="true"/>
|
||||
<index referenceId="MODULE8_INSTALL_SECOND_TABLE_INDEX_3_TEMP" disabled="true"/>
|
||||
</table>
|
||||
<table name="module8_test_temp_table" disabled="true" resource="default"/>
|
||||
<table name="module9_test_update_replica_table" resource="default" engine="innodb"
|
||||
comment="Module9 Test Update Replica Table">
|
||||
<column xsi:type="int" name="module8_entity_id" padding="10" unsigned="true" nullable="false" identity="true"
|
||||
comment="Module8 Entity Id"/>
|
||||
<column xsi:type="int" name="module8_contact_id" padding="11" unsigned="false" nullable="true"
|
||||
identity="false" comment="Module8 Contact Id"/>
|
||||
<column xsi:type="varchar" name="module8_address" nullable="false" length="15" comment="Module8 Address"/>
|
||||
<column xsi:type="smallint" name="module8_counter_with_multiline_comment" padding="5" unsigned="true"
|
||||
nullable="true" identity="false" default="0" comment="Module8 Counter With Multiline Comment"/>
|
||||
<column xsi:type="varchar" name="module8_second_address" nullable="true" length="15"
|
||||
comment="Module8 Second Address"/>
|
||||
<constraint xsi:type="primary" referenceId="PRIMARY">
|
||||
<column name="module8_entity_id"/>
|
||||
</constraint>
|
||||
<constraint xsi:type="foreign" referenceId="FK_F205D8789B56A8E75BBFC0C68C041E98"
|
||||
table="module9_test_update_replica_table" column="module8_address"
|
||||
referenceTable="module8_test_main_table" referenceColumn="module8_content" onDelete="NO ACTION"/>
|
||||
<constraint xsi:type="foreign" referenceId="FK_C7075560727757663A51EC925F4032C9"
|
||||
table="module9_test_update_replica_table" column="module8_address"
|
||||
referenceTable="module8_test_main_table" referenceColumn="module8_contact_id" onDelete="NO ACTION"/>
|
||||
<constraint xsi:type="foreign" referenceId="FK_8914AF398964FAFB4ED2E382866ABBF4"
|
||||
table="module9_test_update_replica_table" column="module8_entity_id"
|
||||
referenceTable="module8_test_main_table" referenceColumn="module8_email_contact_id"
|
||||
onDelete="NO ACTION"/>
|
||||
<index referenceId="MODULE9_TEST_UPDATE_REPLICA_TABLE_MODULE8_ENTITY_ID" indexType="btree">
|
||||
<column name="module8_entity_id"/>
|
||||
</index>
|
||||
<index referenceId="MODULE9_TEST_UPDATE_REPLICA_TABLE_MODULE8_ADDRESS" indexType="btree">
|
||||
<column name="module8_address"/>
|
||||
</index>
|
||||
<index referenceId="MODULE9_TEST_UPDATE_REPLICA_TABLE_MODULE8_SECOND_ADDRESS" indexType="btree">
|
||||
<column name="module8_second_address"/>
|
||||
</index>
|
||||
</table>
|
||||
</schema>
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
{
|
||||
"reference_table": {
|
||||
"column": {
|
||||
"tinyint_ref": true,
|
||||
"tinyint_without_padding": true,
|
||||
"bigint_without_padding": true,
|
||||
"integer_without_padding": true,
|
||||
"smallint_with_big_padding": true,
|
||||
"smallint_without_default": true,
|
||||
"int_without_unsigned": true,
|
||||
"int_unsigned": true,
|
||||
"bigint_default_nullable": true,
|
||||
"bigint_not_default_not_nullable": true,
|
||||
"smallint_without_padding": true
|
||||
},
|
||||
"constraint": {
|
||||
"tinyint_primary": true,
|
||||
"PRIMARY": true
|
||||
}
|
||||
},
|
||||
"auto_increment_test": {
|
||||
"column": {
|
||||
"int_auto_increment_with_nullable": true,
|
||||
"int_disabled_auto_increment": true
|
||||
},
|
||||
"constraint": {
|
||||
"AUTO_INCREMENT_TEST_INT_AUTO_INCREMENT_WITH_NULLABLE": true
|
||||
}
|
||||
},
|
||||
"test_table": {
|
||||
"column": {
|
||||
"smallint": true,
|
||||
"tinyint": true,
|
||||
"bigint": true,
|
||||
"float": true,
|
||||
"double": true,
|
||||
"decimal": true,
|
||||
"date": true,
|
||||
"timestamp": true,
|
||||
"datetime": true,
|
||||
"longtext": true,
|
||||
"mediumtext": true,
|
||||
"varchar": true,
|
||||
"mediumblob": true,
|
||||
"blob": true,
|
||||
"boolean": true,
|
||||
"varbinary_rename": true
|
||||
},
|
||||
"index": {
|
||||
"TEST_TABLE_TINYINT_BIGINT": true
|
||||
},
|
||||
"constraint": {
|
||||
"TEST_TABLE_SMALLINT_BIGINT": true,
|
||||
"TEST_TABLE_TINYINT_REFERENCE_TABLE_TINYINT_REF": true
|
||||
}
|
||||
},
|
||||
"store": {
|
||||
"column": {
|
||||
"store_owner_id": true,
|
||||
"store_owner": true
|
||||
},
|
||||
"constraint": {
|
||||
"STORE_STORE_OWNER_ID_STORE_OWNER_OWNER_ID": true
|
||||
}
|
||||
},
|
||||
"store_owner": {
|
||||
"column": {
|
||||
"owner_id": true,
|
||||
"label": true
|
||||
},
|
||||
"constraint": {
|
||||
"": true
|
||||
}
|
||||
},
|
||||
"some_table": {
|
||||
"column": {
|
||||
"some_column": true
|
||||
}
|
||||
}
|
||||
}
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"test_table": {
|
||||
"column": {
|
||||
"tinyint": true,
|
||||
"customint": true
|
||||
},
|
||||
"index": {
|
||||
"TEST_TABLE_TINYINT_REFERENCE": true,
|
||||
"TEST_TABLE_CUSTOMINT_REFERENCE": true,
|
||||
"TEST_TABLE_CUSTOMINT_BIGINT": true
|
||||
},
|
||||
"constraint": {
|
||||
"TEST_TABLE_INDEX": true,
|
||||
"TEST_TABLE_CUSTOMINT_INDEX": true,
|
||||
"TEST_TABLE_CUSTOMINT_REFERENCE_TABLE_TINYINT_REF": true
|
||||
}
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"reference_test": {
|
||||
"column": {
|
||||
"entity_id": true,
|
||||
"product_id": true
|
||||
},
|
||||
"index": {
|
||||
"REFERENCE_TEST_ENTITY_ID": true
|
||||
},
|
||||
"constraint": {
|
||||
"REFERENCE_TEST_ENTITY_ID_PRODUCT_ID": true,
|
||||
"REFERENCE_TEST_ENTITY_ID_TEST_TABLE_SMALLINT": true
|
||||
}
|
||||
},
|
||||
"auto_increment_test": {
|
||||
"column": {
|
||||
"int_counter": true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user