1
0

testschema.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. <autoincrement>1</autoincrement>
  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. <notnull>true</notnull>
  36. </field>
  37. <field>
  38. <name>booleanfield</name>
  39. <type>boolean</type>
  40. </field>
  41. <field>
  42. <name>booleanfield_true</name>
  43. <type>boolean</type>
  44. <default>true</default>
  45. </field>
  46. <field>
  47. <name>booleanfield_false</name>
  48. <type>boolean</type>
  49. <default>false</default>
  50. </field>
  51. <field>
  52. <name>decimalfield_precision_scale</name>
  53. <type>decimal</type>
  54. <precision>12</precision>
  55. <scale>2</scale>
  56. </field>
  57. <index>
  58. <name>index_primary</name>
  59. <primary>true</primary>
  60. <unique>true</unique>
  61. <field>
  62. <name>integerfield</name>
  63. <sorting>ascending</sorting>
  64. </field>
  65. </index>
  66. <index>
  67. <name>index_boolean</name>
  68. <unique>false</unique>
  69. <field>
  70. <name>booleanfield</name>
  71. <sorting>ascending</sorting>
  72. </field>
  73. </index>
  74. </declaration>
  75. </table>
  76. </database>