aboutsummaryrefslogtreecommitdiffstats
path: root/db_structure.xml
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-07-16 12:55:28 +0200
committerRobin Appelman <icewind@owncloud.com>2015-08-03 14:13:36 +0200
commit96a9d171b3fc31a6ad1ed89dca987765ed1ce721 (patch)
treea51669e20e585a0347ad4cf018b57c3cebd31ad5 /db_structure.xml
parent86acd535c243569fda7c1a2957073509c7e94f89 (diff)
downloadnextcloud-server-96a9d171b3fc31a6ad1ed89dca987765ed1ce721.tar.gz
nextcloud-server-96a9d171b3fc31a6ad1ed89dca987765ed1ce721.zip
Fix db schema
Diffstat (limited to 'db_structure.xml')
-rw-r--r--db_structure.xml35
1 files changed, 34 insertions, 1 deletions
diff --git a/db_structure.xml b/db_structure.xml
index 95acefcfaee..5c2b26e5f15 100644
--- a/db_structure.xml
+++ b/db_structure.xml
@@ -1185,11 +1185,21 @@
<!--
Table for storing high-level locking
-->
- <name>*dbprefix*locks</name>
+ <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>
@@ -1204,10 +1214,25 @@
<length>64</length>
</field>
+ <field>
+ <name>ttl</name>
+ <type>integer</type>
+ <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_path_index</name>
<field>
<name>path</name>
@@ -1215,6 +1240,14 @@
</field>
</index>
+ <index>
+ <name>lock_ttl_index</name>
+ <field>
+ <name>ttl</name>
+ <sorting>ascending</sorting>
+ </field>
+ </index>
+
</declaration>
</table>