testschema.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <database>
  3. <name>*dbname*</name>
  4. <create>true</create>
  5. <overwrite>false</overwrite>
  6. <charset>utf8</charset>
  7. <table>
  8. <name>*dbprefix*table</name>
  9. <declaration>
  10. <field>
  11. <name>integerfield</name>
  12. <type>integer</type>
  13. <default>0</default>
  14. <notnull>true</notnull>
  15. <primary>true</primary>
  16. <length>4</length>
  17. </field>
  18. <field>
  19. <name>integerfield_default</name>
  20. <type>integer</type>
  21. <default>10</default>
  22. <notnull>true</notnull>
  23. <length>4</length>
  24. </field>
  25. <field>
  26. <name>textfield</name>
  27. <type>text</type>
  28. <default>foo</default>
  29. <notnull>true</notnull>
  30. <length>32</length>
  31. </field>
  32. <field>
  33. <name>clobfield</name>
  34. <type>clob</type>
  35. </field>
  36. <field>
  37. <name>booleanfield</name>
  38. <type>boolean</type>
  39. </field>
  40. <field>
  41. <name>booleanfield_true</name>
  42. <type>boolean</type>
  43. <default>true</default>
  44. </field>
  45. <field>
  46. <name>booleanfield_false</name>
  47. <type>boolean</type>
  48. <default>false</default>
  49. </field>
  50. <field>
  51. <name>decimalfield_precision_scale</name>
  52. <type>decimal</type>
  53. <precision>12</precision>
  54. <scale>2</scale>
  55. </field>
  56. <index>
  57. <name>index_primary</name>
  58. <primary>true</primary>
  59. <unique>true</unique>
  60. <field>
  61. <name>integerfield</name>
  62. <sorting>ascending</sorting>
  63. </field>
  64. </index>
  65. <index>
  66. <name>index_boolean</name>
  67. <unique>false</unique>
  68. <field>
  69. <name>booleanfield</name>
  70. <sorting>ascending</sorting>
  71. </field>
  72. </index>
  73. </declaration>
  74. </table>
  75. </database>