Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 

111 строки
7.1 KiB

  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="cms_block" resource="default" engine="innodb" comment="CMS Block Table">
  11. <column xsi:type="smallint" name="block_id" unsigned="false" nullable="false" identity="true"
  12. comment="Entity ID"/>
  13. <column xsi:type="varchar" name="title" nullable="false" length="255" comment="Block Title"/>
  14. <column xsi:type="varchar" name="identifier" nullable="false" length="255" comment="Block String Identifier"/>
  15. <column xsi:type="mediumtext" name="content" nullable="true" comment="Block Content"/>
  16. <column xsi:type="timestamp" name="creation_time" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
  17. comment="Block Creation Time"/>
  18. <column xsi:type="timestamp" name="update_time" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
  19. comment="Block Modification Time"/>
  20. <column xsi:type="smallint" name="is_active" unsigned="false" nullable="false" identity="false"
  21. default="1" comment="Is Block Active"/>
  22. <constraint xsi:type="primary" referenceId="PRIMARY">
  23. <column name="block_id"/>
  24. </constraint>
  25. <index referenceId="CMS_BLOCK_IDENTIFIER" indexType="btree">
  26. <column name="identifier"/>
  27. </index>
  28. <index referenceId="CMS_BLOCK_TITLE_IDENTIFIER_CONTENT" indexType="fulltext">
  29. <column name="title"/>
  30. <column name="identifier"/>
  31. <column name="content"/>
  32. </index>
  33. </table>
  34. <table name="cms_block_store" resource="default" engine="innodb" comment="CMS Block To Store Linkage Table">
  35. <column xsi:type="smallint" name="block_id" unsigned="false" nullable="false" identity="false"/>
  36. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  37. comment="Store ID"/>
  38. <constraint xsi:type="primary" referenceId="PRIMARY">
  39. <column name="block_id"/>
  40. <column name="store_id"/>
  41. </constraint>
  42. <constraint xsi:type="foreign" referenceId="CMS_BLOCK_STORE_BLOCK_ID_CMS_BLOCK_BLOCK_ID" table="cms_block_store"
  43. column="block_id" referenceTable="cms_block" referenceColumn="block_id" onDelete="CASCADE"/>
  44. <constraint xsi:type="foreign" referenceId="CMS_BLOCK_STORE_STORE_ID_STORE_STORE_ID" table="cms_block_store"
  45. column="store_id" referenceTable="store" referenceColumn="store_id" onDelete="CASCADE"/>
  46. <index referenceId="CMS_BLOCK_STORE_STORE_ID" indexType="btree">
  47. <column name="store_id"/>
  48. </index>
  49. </table>
  50. <table name="cms_page" resource="default" engine="innodb" comment="CMS Page Table">
  51. <column xsi:type="smallint" name="page_id" unsigned="false" nullable="false" identity="true"
  52. comment="Entity ID"/>
  53. <column xsi:type="varchar" name="title" nullable="true" length="255" comment="Page Title"/>
  54. <column xsi:type="varchar" name="page_layout" nullable="true" length="255" comment="Page Layout"/>
  55. <column xsi:type="text" name="meta_keywords" nullable="true" comment="Page Meta Keywords"/>
  56. <column xsi:type="text" name="meta_description" nullable="true" comment="Page Meta Description"/>
  57. <column xsi:type="varchar" name="identifier" nullable="true" length="100" comment="Page String Identifier"/>
  58. <column xsi:type="varchar" name="content_heading" nullable="true" length="255" comment="Page Content Heading"/>
  59. <column xsi:type="mediumtext" name="content" nullable="true" comment="Page Content"/>
  60. <column xsi:type="timestamp" name="creation_time" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
  61. comment="Page Creation Time"/>
  62. <column xsi:type="timestamp" name="update_time" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
  63. comment="Page Modification Time"/>
  64. <column xsi:type="smallint" name="is_active" unsigned="false" nullable="false" identity="false"
  65. default="1" comment="Is Page Active"/>
  66. <column xsi:type="smallint" name="sort_order" unsigned="false" nullable="false" identity="false"
  67. default="0" comment="Page Sort Order"/>
  68. <column xsi:type="text" name="layout_update_xml" nullable="true" comment="Page Layout Update Content"/>
  69. <column xsi:type="varchar" name="custom_theme" nullable="true" length="100" comment="Page Custom Theme"/>
  70. <column xsi:type="varchar" name="custom_root_template" nullable="true" length="255"
  71. comment="Page Custom Template"/>
  72. <column xsi:type="text" name="custom_layout_update_xml" nullable="true"
  73. comment="Page Custom Layout Update Content"/>
  74. <column xsi:type="varchar" name="layout_update_selected" nullable="true"
  75. length="128" comment="Page Custom Layout File"/>
  76. <column xsi:type="date" name="custom_theme_from" comment="Page Custom Theme Active From Date"/>
  77. <column xsi:type="date" name="custom_theme_to" comment="Page Custom Theme Active To Date"/>
  78. <column xsi:type="varchar" name="meta_title" nullable="true" length="255" comment="Page Meta Title"/>
  79. <constraint xsi:type="primary" referenceId="PRIMARY">
  80. <column name="page_id"/>
  81. </constraint>
  82. <index referenceId="CMS_PAGE_IDENTIFIER" indexType="btree">
  83. <column name="identifier"/>
  84. </index>
  85. <index referenceId="CMS_PAGE_TITLE_META_KEYWORDS_META_DESCRIPTION_IDENTIFIER_CONTENT" indexType="fulltext">
  86. <column name="title"/>
  87. <column name="meta_keywords"/>
  88. <column name="meta_description"/>
  89. <column name="identifier"/>
  90. <column name="content"/>
  91. </index>
  92. </table>
  93. <table name="cms_page_store" resource="default" engine="innodb" comment="CMS Page To Store Linkage Table">
  94. <column xsi:type="smallint" name="page_id" unsigned="false" nullable="false" identity="false"
  95. comment="Entity ID"/>
  96. <column xsi:type="smallint" name="store_id" unsigned="true" nullable="false" identity="false"
  97. comment="Store ID"/>
  98. <constraint xsi:type="primary" referenceId="PRIMARY">
  99. <column name="page_id"/>
  100. <column name="store_id"/>
  101. </constraint>
  102. <constraint xsi:type="foreign" referenceId="CMS_PAGE_STORE_PAGE_ID_CMS_PAGE_PAGE_ID" table="cms_page_store"
  103. column="page_id" referenceTable="cms_page" referenceColumn="page_id" onDelete="CASCADE"/>
  104. <constraint xsi:type="foreign" referenceId="CMS_PAGE_STORE_STORE_ID_STORE_STORE_ID" table="cms_page_store"
  105. column="store_id" referenceTable="store" referenceColumn="store_id" onDelete="CASCADE"/>
  106. <index referenceId="CMS_PAGE_STORE_STORE_ID" indexType="btree">
  107. <column name="store_id"/>
  108. </index>
  109. </table>
  110. </schema>