1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?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="indexer_state" resource="default" engine="innodb" comment="Indexer State">
- <column xsi:type="int" name="state_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="Indexer State Id"/>
- <column xsi:type="varchar" name="indexer_id" nullable="true" length="255" comment="Indexer Id"/>
- <column xsi:type="varchar" name="status" nullable="true" length="16" default="invalid"
- comment="Indexer Status"/>
- <column xsi:type="datetime" name="updated" on_update="false" nullable="true" comment="Indexer Status"/>
- <column xsi:type="varchar" name="hash_config" nullable="false" length="32" comment="Hash of indexer config"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="state_id"/>
- </constraint>
- <index referenceId="INDEXER_STATE_INDEXER_ID" indexType="btree">
- <column name="indexer_id"/>
- </index>
- </table>
- <table name="mview_state" resource="default" engine="innodb" comment="View State">
- <column xsi:type="int" name="state_id" padding="10" unsigned="true" nullable="false" identity="true"
- comment="View State Id"/>
- <column xsi:type="varchar" name="view_id" nullable="true" length="255" comment="View Id"/>
- <column xsi:type="varchar" name="mode" nullable="true" length="16" default="disabled" comment="View Mode"/>
- <column xsi:type="varchar" name="status" nullable="true" length="16" default="idle" comment="View Status"/>
- <column xsi:type="datetime" name="updated" on_update="false" nullable="true" comment="View updated time"/>
- <column xsi:type="int" name="version_id" padding="10" unsigned="true" nullable="true" identity="false"
- comment="View Version Id"/>
- <constraint xsi:type="primary" referenceId="PRIMARY">
- <column name="state_id"/>
- </constraint>
- <index referenceId="MVIEW_STATE_VIEW_ID" indexType="btree">
- <column name="view_id"/>
- </index>
- <index referenceId="MVIEW_STATE_MODE" indexType="btree">
- <column name="mode"/>
- </index>
- </table>
- </schema>
|