config.xsd 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. /**
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. -->
  8. <xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  9. <xs:annotation>
  10. <xs:documentation>Migration Tool Configuration</xs:documentation>
  11. </xs:annotation>
  12. <xs:element name="config" type="configType" />
  13. <xs:complexType name="configType">
  14. <xs:annotation>
  15. <xs:documentation>Configuration root node</xs:documentation>
  16. </xs:annotation>
  17. <xs:sequence maxOccurs="unbounded" minOccurs="0">
  18. <xs:element name="steps" type="stepsType" maxOccurs="unbounded" minOccurs="1" />
  19. <xs:element name="source" type="sourceType" maxOccurs="1" minOccurs="1" />
  20. <xs:element name="destination" type="destinationType" maxOccurs="1" minOccurs="1" />
  21. <xs:element name="options" type="optionsType" maxOccurs="1" minOccurs="1" />
  22. </xs:sequence>
  23. </xs:complexType>
  24. <xs:complexType name="stepsType">
  25. <xs:annotation>
  26. <xs:documentation>Definition of steps.</xs:documentation>
  27. </xs:annotation>
  28. <xs:sequence maxOccurs="unbounded" minOccurs="0">
  29. <xs:element name="step" type="stepType" maxOccurs="unbounded" minOccurs="0" />
  30. </xs:sequence>
  31. <xs:attribute name="mode" type="xs:string" use="required" />
  32. </xs:complexType>
  33. <xs:complexType name="stepType">
  34. <xs:sequence maxOccurs="unbounded" minOccurs="0">
  35. <xs:element name="integrity" type="stageType" maxOccurs="unbounded" minOccurs="0" />
  36. <xs:element name="data" type="stageType" maxOccurs="unbounded" minOccurs="0" />
  37. <xs:element name="delta" type="stageType" maxOccurs="unbounded" minOccurs="0" />
  38. <xs:element name="volume" type="stageType" maxOccurs="unbounded" minOccurs="0" />
  39. </xs:sequence>
  40. <xs:attribute name="title" type="xs:string" use="required" />
  41. </xs:complexType>
  42. <xs:simpleType name="stageType">
  43. <xs:restriction base="xs:string">
  44. <xs:pattern value="[a-zA-Z][a-zA-Z0-9_\\\\]+" />
  45. </xs:restriction>
  46. </xs:simpleType>
  47. <xs:complexType name="sourceType">
  48. <xs:annotation>
  49. <xs:documentation>Definition data source.</xs:documentation>
  50. </xs:annotation>
  51. <xs:choice>
  52. <xs:element name="database" type="resourceTypeDatabase" />
  53. </xs:choice>
  54. </xs:complexType>
  55. <xs:complexType name="destinationType">
  56. <xs:annotation>
  57. <xs:documentation>Definition of data destination.</xs:documentation>
  58. </xs:annotation>
  59. <xs:choice>
  60. <xs:element name="database" type="resourceTypeDatabase" />
  61. </xs:choice>
  62. </xs:complexType>
  63. <xs:complexType name="resourceTypeDatabase">
  64. <xs:attribute name="name" type="xs:string" use="required" />
  65. <xs:attribute name="host" type="xs:string" use="required" />
  66. <xs:attribute name="port" type="xs:string" use="optional" />
  67. <xs:attribute name="user" type="xs:string" use="required" />
  68. <xs:attribute name="password" type="xs:string" use="optional" />
  69. <xs:attribute name="ssl_ca" type="xs:string" use="optional" />
  70. <xs:attribute name="ssl_cert" type="xs:string" use="optional" />
  71. <xs:attribute name="ssl_key" type="xs:string" use="optional" />
  72. </xs:complexType>
  73. <xs:simpleType name="resourceType">
  74. <xs:restriction base="xs:string">
  75. <xs:enumeration value="database" />
  76. </xs:restriction>
  77. </xs:simpleType>
  78. <xs:complexType name="optionsType">
  79. <xs:annotation>
  80. <xs:documentation>Definition of options.</xs:documentation>
  81. </xs:annotation>
  82. <xs:choice minOccurs="1" maxOccurs="unbounded">
  83. <xs:element name="map_file" type="xmlFile" maxOccurs="1" />
  84. <xs:element name="eav_map_file" type="xmlFile" maxOccurs="1" />
  85. <xs:element name="log_map_file" type="xmlFile" maxOccurs="1" />
  86. <xs:element name="settings_map_file" type="xmlFile" maxOccurs="1" />
  87. <xs:element name="sales_order_map_file" type="xmlFile" maxOccurs="1" />
  88. <xs:element name="delta_document_groups_file" type="xmlFile" maxOccurs="1" />
  89. <xs:element name="bulk_size" type="xs:int" maxOccurs="1" />
  90. <xs:element name="resource_adapter_class_name" type="xs:string" maxOccurs="1" />
  91. <xs:element name="log_file" type="xs:string" maxOccurs="1" />
  92. <xs:element name="progress_bar_format" type="xs:string" maxOccurs="1" />
  93. <xs:element name="upgrade_customer_password_hash" type="xs:string" maxOccurs="1" />
  94. <xs:element name="crypt_key" type="xs:string" maxOccurs="1" />
  95. <xs:element name="edition_migrate" type="xs:string" maxOccurs="1" />
  96. <xs:element name="init_statements_source" type="xs:string" maxOccurs="1" />
  97. <xs:element name="init_statements_destination" type="xs:string" maxOccurs="1" />
  98. <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip" />
  99. </xs:choice>
  100. </xs:complexType>
  101. <xs:simpleType name="xmlFile">
  102. <xs:restriction base="xs:string">
  103. <xs:pattern value="[-/A-Za-z0-9\._]+\.(xml|dist)" />
  104. </xs:restriction>
  105. </xs:simpleType>
  106. </xs:schema>