diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-09 20:53:08 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-03-09 22:37:49 +0100 |
commit | b966a4eb17729230c461b9075143203bd50ed9e3 (patch) | |
tree | 5150dd1998752288cca93f95ff595d47e253e002 /tests/data/db_structure.xml | |
parent | 2747a83a49ac803cc127614a6e0b40a244831bdf (diff) | |
download | nextcloud-server-b966a4eb17729230c461b9075143203bd50ed9e3.tar.gz nextcloud-server-b966a4eb17729230c461b9075143203bd50ed9e3.zip |
Adding unit test which shows insertIfNotExists to fall apart in certain situations
Diffstat (limited to 'tests/data/db_structure.xml')
-rw-r--r-- | tests/data/db_structure.xml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/tests/data/db_structure.xml b/tests/data/db_structure.xml index 858c9ab1002..371da944832 100644 --- a/tests/data/db_structure.xml +++ b/tests/data/db_structure.xml @@ -238,4 +238,59 @@ </declaration> </table> + <table> + <name>*dbprefix*uniconst</name> + <declaration> + + <field> + <name>id</name> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <autoincrement>1</autoincrement> + <length>4</length> + </field> + + <!-- Foreign Key storages::numeric_id --> + <field> + <name>storage</name> + <type>integer</type> + <default></default> + <notnull>true</notnull> + <length>4</length> + </field> + + <field> + <name>path_hash</name> + <type>text</type> + <default></default> + <notnull>true</notnull> + <length>32</length> + </field> + + <field> + <name>etag</name> + <type>text</type> + <default></default> + <notnull>false</notnull> + <length>40</length> + </field> + + <index> + <!--<name>fs_storage_path_hash</name>--> + <unique>true</unique> + <field> + <name>storage</name> + <sorting>ascending</sorting> + </field> + <field> + <name>path_hash</name> + <sorting>ascending</sorting> + </field> + </index> + + </declaration> + + </table> + </database> |