db_schema.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version="1.0"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  9. xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
  10. <table name="indexer_state" resource="default" engine="innodb" comment="Indexer State">
  11. <column xsi:type="int" name="state_id" padding="10" unsigned="true" nullable="false" identity="true"
  12. comment="Indexer State Id"/>
  13. <column xsi:type="varchar" name="indexer_id" nullable="true" length="255" comment="Indexer Id"/>
  14. <column xsi:type="varchar" name="status" nullable="true" length="16" default="invalid"
  15. comment="Indexer Status"/>
  16. <column xsi:type="datetime" name="updated" on_update="false" nullable="true" comment="Indexer Status"/>
  17. <column xsi:type="varchar" name="hash_config" nullable="false" length="32" comment="Hash of indexer config"/>
  18. <constraint xsi:type="primary" referenceId="PRIMARY">
  19. <column name="state_id"/>
  20. </constraint>
  21. <index referenceId="INDEXER_STATE_INDEXER_ID" indexType="btree">
  22. <column name="indexer_id"/>
  23. </index>
  24. </table>
  25. <table name="mview_state" resource="default" engine="innodb" comment="View State">
  26. <column xsi:type="int" name="state_id" padding="10" unsigned="true" nullable="false" identity="true"
  27. comment="View State Id"/>
  28. <column xsi:type="varchar" name="view_id" nullable="true" length="255" comment="View Id"/>
  29. <column xsi:type="varchar" name="mode" nullable="true" length="16" default="disabled" comment="View Mode"/>
  30. <column xsi:type="varchar" name="status" nullable="true" length="16" default="idle" comment="View Status"/>
  31. <column xsi:type="datetime" name="updated" on_update="false" nullable="true" comment="View updated time"/>
  32. <column xsi:type="int" name="version_id" padding="10" unsigned="true" nullable="true" identity="false"
  33. comment="View Version Id"/>
  34. <constraint xsi:type="primary" referenceId="PRIMARY">
  35. <column name="state_id"/>
  36. </constraint>
  37. <index referenceId="MVIEW_STATE_VIEW_ID" indexType="btree">
  38. <column name="view_id"/>
  39. </index>
  40. <index referenceId="MVIEW_STATE_MODE" indexType="btree">
  41. <column name="mode"/>
  42. </index>
  43. </table>
  44. </schema>