diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-07-29 16:33:27 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-07-29 16:33:27 +0200 |
commit | a4df982dc3b2f88078d0ef4a4dbe0fdc1d37105a (patch) | |
tree | 390b280f69343dfd99b72c8280fb07081c7d2031 /tests/lib/db/testschema.xml | |
parent | d6c56b584ac4fdb9169ed2747072d8f90cc00612 (diff) | |
download | nextcloud-server-a4df982dc3b2f88078d0ef4a4dbe0fdc1d37105a.tar.gz nextcloud-server-a4df982dc3b2f88078d0ef4a4dbe0fdc1d37105a.zip |
add tests for MDB2SchemaReader
Diffstat (limited to 'tests/lib/db/testschema.xml')
-rw-r--r-- | tests/lib/db/testschema.xml | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/tests/lib/db/testschema.xml b/tests/lib/db/testschema.xml new file mode 100644 index 00000000000..509b55ee81f --- /dev/null +++ b/tests/lib/db/testschema.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="utf-8" ?> +<database> + + <name>*dbname*</name> + <create>true</create> + <overwrite>false</overwrite> + + <charset>utf8</charset> + + <table> + + <name>*dbprefix*table</name> + + <declaration> + <field> + <name>integerfield</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <autoincrement>1</autoincrement> + <length>4</length> + </field> + <field> + <name>integerfield_default</name> + <type>integer</type> + <default>10</default> + <notnull>true</notnull> + <length>4</length> + </field> + <field> + <name>textfield</name> + <type>text</type> + <default>foo</default> + <notnull>true</notnull> + <length>32</length> + </field> + <field> + <name>clobfield</name> + <type>clob</type> + <notnull>true</notnull> + </field> + <field> + <name>booleanfield</name> + <type>boolean</type> + </field> + <field> + <name>booleanfield_true</name> + <type>boolean</type> + <default>true</default> + </field> + <field> + <name>booleanfield_false</name> + <type>boolean</type> + <default>false</default> + </field> + + <index> + <name>index_primary</name> + <primary>true</primary> + <unique>true</unique> + <field> + <name>integerfield</name> + <sorting>ascending</sorting> + </field> + </index> + + <index> + <name>index_boolean</name> + <unique>false</unique> + <field> + <name>booleanfield</name> + <sorting>ascending</sorting> + </field> + </index> + </declaration> + </table> +</database> |