![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/app/code/Cnc/AdminHistory/etc/ |
<?xml version="1.0"?> <!-- /** * Copyright (c) 2020 Kaliop Digital Commerce (https://digitalcommerce.kaliop.com) All Rights Reserved. * https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * Cnc * Radosław Stępień <[email protected]> <[email protected]> */ --> <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd"> <table name="cnc_admin_history_product" resource="default"> <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true" comment="History ID"/> <column xsi:type="int" name="product_id" padding="10" unsigned="true" nullable="false" identity="false" comment="Product ID"/> <constraint xsi:type="foreign" referenceId="PRODUCTHISTORY_PRODUCT_REFERRED_BY_PRODUCT_ENTITY_ID" table="cnc_admin_history_product" column="product_id" referenceTable="catalog_product_entity" referenceColumn="entity_id" onDelete="CASCADE"/> <column xsi:type="varchar" name="attribute_code" nullable="false" length="255" comment="Attribute Code"/> <column xsi:type="varchar" name="old_value" nullable="true" length="255" comment="Old value"/> <column xsi:type="varchar" name="new_value" nullable="true" length="255" comment="New Value"/> <column xsi:type="timestamp" name="updated_at" nullable="true" comment="Updated At"/> <column xsi:type="varchar" name="user" nullable="true" length="255" comment="User"/> <constraint xsi:type="primary" referenceId="PRIMARY"> <column name="entity_id"/> </constraint> <constraint xsi:type="unique" referenceId="CNC_ADMIN_HISTORY_PRODUCT_ENTITY_ID"> <column name="entity_id"/> </constraint> </table> <table name="cnc_admin_history_customer" resource="default"> <column xsi:type="int" name="entity_id" unsigned="true" nullable="false" identity="true" comment="History ID"/> <column xsi:type="int" name="customer_id" padding="10" unsigned="true" nullable="false" identity="false" comment="Customer ID"/> <constraint xsi:type="foreign" referenceId="CUSTOMERHISTORY_CUSTOMER_REFERRED_BY_CUSTOMER_ENTITY_ID" table="cnc_admin_history_customer" column="customer_id" referenceTable="customer_entity" referenceColumn="entity_id" onDelete="CASCADE"/> <column xsi:type="varchar" name="attribute_code" nullable="false" length="255" comment="Attribute Code"/> <column xsi:type="varchar" name="old_value" nullable="true" length="255" comment="Old value"/> <column xsi:type="varchar" name="new_value" nullable="true" length="255" comment="New Value"/> <column xsi:type="timestamp" name="updated_at" nullable="true" comment="Updated At"/> <column xsi:type="varchar" name="user" nullable="true" length="255" comment="User"/> <constraint xsi:type="primary" referenceId="PRIMARY"> <column name="entity_id"/> </constraint> <constraint xsi:type="unique" referenceId="CNC_ADMIN_HISTORY_CUSTOMER_ENTITY_ID"> <column name="entity_id"/> </constraint> </table> </schema>