diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-10-12 15:59:19 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-10-12 15:59:19 +0200 |
commit | 316ed0ccc78847925dfd0015b07c46f21250afcd (patch) | |
tree | 583164ad89e4ba28f6f02e61f6e1547c69a29267 /tests/data | |
parent | 35442e54744d74b18933d4e0b026ad189d90a650 (diff) | |
download | nextcloud-server-316ed0ccc78847925dfd0015b07c46f21250afcd.tar.gz nextcloud-server-316ed0ccc78847925dfd0015b07c46f21250afcd.zip |
Add missing test files
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/db_structure.xml | 138 | ||||
-rw-r--r-- | tests/data/db_structure2.xml | 77 |
2 files changed, 215 insertions, 0 deletions
diff --git a/tests/data/db_structure.xml b/tests/data/db_structure.xml new file mode 100644 index 00000000000..03d7502c441 --- /dev/null +++ b/tests/data/db_structure.xml @@ -0,0 +1,138 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<database> + + <name>*dbname*</name> + <create>false</create> + <overwrite>false</overwrite> + + <charset>utf8</charset> + + <table> + + <name>*dbprefix*contacts_addressbooks</name> + + <declaration> + + <field> + <name>id</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <autoincrement>1</autoincrement> + <unsigned>true</unsigned> + <length>4</length> + </field> + + <field> + <name>userid</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>255</length> + </field> + + <field> + <name>displayname</name> + <type>text</type> + <default></default> + <notnull>false</notnull> + <length>255</length> + </field> + + <field> + <name>uri</name> + <type>text</type> + <default></default> + <notnull>false</notnull> + <length>200</length> + </field> + + <field> + <name>description</name> + <type>text</type> + <notnull>false</notnull> + <length>255</length> + </field> + + <field> + <name>ctag</name> + <type>integer</type> + <default>1</default> + <notnull>true</notnull> + <unsigned>true</unsigned> + <length>4</length> + </field> + + <field> + <name>active</name> + <type>integer</type> + <default>1</default> + <notnull>true</notnull> + <length>4</length> + </field> + + </declaration> + + </table> + + <table> + + <name>*dbprefix*contacts_cards</name> + + <declaration> + + <field> + <name>id</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <autoincrement>1</autoincrement> + <unsigned>true</unsigned> + <length>4</length> + </field> + + <field> + <name>addressbookid</name> + <type>integer</type> + <default></default> + <notnull>true</notnull> + <unsigned>true</unsigned> + <length>4</length> + </field> + + <field> + <name>fullname</name> + <type>text</type> + <default></default> + <notnull>false</notnull> + <length>255</length> + </field> + + <field> + <name>carddata</name> + <type>clob</type> + <notnull>false</notnull> + </field> + + <field> + <name>uri</name> + <type>text</type> + <default></default> + <notnull>false</notnull> + <length>200</length> + </field> + + <field> + <name>lastmodified</name> + <type>integer</type> + <default></default> + <notnull>false</notnull> + <unsigned>true</unsigned> + <length>4</length> + </field> + + </declaration> + + </table> + +</database> diff --git a/tests/data/db_structure2.xml b/tests/data/db_structure2.xml new file mode 100644 index 00000000000..c1bbb550483 --- /dev/null +++ b/tests/data/db_structure2.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<database> + + <name>*dbname*</name> + <create>true</create> + <overwrite>false</overwrite> + + <charset>utf8</charset> + + <table> + + <name>*dbprefix*contacts_addressbooks</name> + + <declaration> + + <field> + <name>id</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <autoincrement>1</autoincrement> + <unsigned>true</unsigned> + <length>4</length> + </field> + + <field> + <name>userid</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>255</length> + </field> + + <field> + <name>displayname</name> + <type>text</type> + <default></default> + <notnull>false</notnull> + <length>255</length> + </field> + + <field> + <name>uri</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>200</length> + </field> + + <field> + <name>description</name> + <type>clob</type> + <notnull>false</notnull> + </field> + + <field> + <name>ctag</name> + <type>integer</type> + <default>1</default> + <notnull>true</notnull> + <unsigned>true</unsigned> + <length>4</length> + </field> + + <field> + <name>active</name> + <type>integer</type> + <default>1</default> + <notnull>true</notnull> + <length>1</length> + </field> + + </declaration> + + </table> + +</database> |