summaryrefslogtreecommitdiffstats
path: root/db_structure.xml
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-08-26 03:56:37 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-08-26 03:56:37 +0200
commit534b2e407a80405c636b1ebd4486d01b9d3147bd (patch)
tree540fc589d148d8962b057b4914fbc59539251414 /db_structure.xml
parentb45ae1b32e41951a879bdbbdbbe0cb04dd86cda1 (diff)
parent6f6a5f6c2981cd046abc0530c4b6a222e67f17a7 (diff)
downloadnextcloud-server-534b2e407a80405c636b1ebd4486d01b9d3147bd.tar.gz
nextcloud-server-534b2e407a80405c636b1ebd4486d01b9d3147bd.zip
Merge pull request #17662 from owncloud/locking-db
Database backend for locking
Diffstat (limited to 'db_structure.xml')
-rw-r--r--db_structure.xml73
1 files changed, 73 insertions, 0 deletions
diff --git a/db_structure.xml b/db_structure.xml
index 870c0ab018d..c7b7ffec601 100644
--- a/db_structure.xml
+++ b/db_structure.xml
@@ -1192,5 +1192,78 @@
</table>
+ <table>
+
+ <!--
+ Table for storing transactional file locking
+ -->
+ <name>*dbprefix*file_locks</name>
+
+ <declaration>
+
+ <field>
+ <name>id</name>
+ <type>integer</type>
+ <default>0</default>
+ <notnull>true</notnull>
+ <unsigned>true</unsigned>
+ <length>4</length>
+ <autoincrement>1</autoincrement>
+ </field>
+
+ <field>
+ <name>lock</name>
+ <type>integer</type>
+ <default>0</default>
+ <notnull>true</notnull>
+ <length>4</length>
+ </field>
+
+ <field>
+ <name>key</name>
+ <type>text</type>
+ <notnull>true</notnull>
+ <length>64</length>
+ </field>
+
+ <field>
+ <name>ttl</name>
+ <type>integer</type>
+ <default>-1</default>
+ <notnull>true</notnull>
+ <length>4</length>
+ </field>
+
+ <index>
+ <primary>true</primary>
+ <unique>true</unique>
+ <name>lock_id_index</name>
+ <field>
+ <name>id</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
+ <index>
+ <unique>true</unique>
+ <name>lock_key_index</name>
+ <field>
+ <name>key</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
+ <index>
+ <name>lock_ttl_index</name>
+ <field>
+ <name>ttl</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
+ </declaration>
+
+ </table>
+
</database>