HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/magento.bikenow.co/vendor/magento/module-swatches/etc/db_schema.xml
<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
    <table name="catalog_eav_attribute" resource="default" comment="Catalog EAV Attribute Table">
        <column xsi:type="text" name="additional_data" nullable="true" comment="Additional swatch attributes data"/>
    </table>
    <table name="eav_attribute_option_swatch" resource="default" engine="innodb" comment="Magento Swatches table">
        <column xsi:type="int" name="swatch_id" unsigned="true" nullable="false" identity="true"
                comment="Swatch ID"/>
        <column xsi:type="int" name="option_id" unsigned="true" nullable="false" identity="false"
                comment="Option ID"/>
        <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
                comment="Store ID"/>
        <column xsi:type="smallint" name="type" unsigned="true" nullable="false" identity="false"
                comment="Swatch type: 0 - text, 1 - visual color, 2 - visual image"/>
        <column xsi:type="varchar" name="value" nullable="true" length="255" comment="Swatch Value"/>
        <constraint xsi:type="primary" referenceId="PRIMARY">
            <column name="swatch_id"/>
        </constraint>
        <constraint xsi:type="foreign" referenceId="EAV_ATTRIBUTE_OPTION_SWATCH_STORE_ID_STORE_STORE_ID"
                    table="eav_attribute_option_swatch" column="store_id" referenceTable="store"
                    referenceColumn="store_id" onDelete="CASCADE"/>
        <constraint xsi:type="foreign" referenceId="EAV_ATTR_OPT_SWATCH_OPT_ID_EAV_ATTR_OPT_OPT_ID"
                    table="eav_attribute_option_swatch" column="option_id" referenceTable="eav_attribute_option"
                    referenceColumn="option_id" onDelete="CASCADE"/>
        <constraint xsi:type="unique" referenceId="EAV_ATTRIBUTE_OPTION_SWATCH_STORE_ID_OPTION_ID">
            <column name="store_id"/>
            <column name="option_id"/>
        </constraint>
        <index referenceId="EAV_ATTRIBUTE_OPTION_SWATCH_SWATCH_ID" indexType="btree">
            <column name="swatch_id"/>
        </index>
    </table>
</schema>