aboutsummaryrefslogtreecommitdiffstats
path: root/db_structure.xml
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2016-02-26 01:02:22 +0100
committerArthur Schiwon <blizzz@owncloud.com>2016-02-26 01:02:22 +0100
commitb3ac81f1344634da3027e34000c20b8e13dcad49 (patch)
tree487bea25c5f71b6e5cd1c51ae5c1ab4210658fcf /db_structure.xml
parent9250704ecb2af58f455169ab8fb92428584e6488 (diff)
downloadnextcloud-server-b3ac81f1344634da3027e34000c20b8e13dcad49.tar.gz
nextcloud-server-b3ac81f1344634da3027e34000c20b8e13dcad49.zip
exchange user_id_key for a unique one.
Diffstat (limited to 'db_structure.xml')
-rw-r--r--db_structure.xml20
1 files changed, 13 insertions, 7 deletions
diff --git a/db_structure.xml b/db_structure.xml
index acdd2a5a577..99541a4f901 100644
--- a/db_structure.xml
+++ b/db_structure.xml
@@ -1575,7 +1575,6 @@
<name>creation_timestamp</name>
<sorting>descending</sorting>
</field>
- <!-- TODO: check whether this supports a query without creation timestamp -->
</index>
<index>
@@ -1635,17 +1634,25 @@
</field>
<index>
- <name>comments_marker_user_id_index</name>
+ <name>comments_marker_object_index</name>
<unique>false</unique>
<field>
- <name>user_id</name>
- <sorting>descending</sorting>
+ <name>object_type</name>
+ <sorting>ascending</sorting>
+ </field>
+ <field>
+ <name>object_id</name>
+ <sorting>ascending</sorting>
</field>
</index>
<index>
- <name>comments_marker_object_index</name>
- <unique>false</unique>
+ <name>comments_marker_index</name>
+ <unique>true</unique>
+ <field>
+ <name>user_id</name>
+ <sorting>descending</sorting>
+ </field>
<field>
<name>object_type</name>
<sorting>ascending</sorting>
@@ -1654,7 +1661,6 @@
<name>object_id</name>
<sorting>ascending</sorting>
</field>
- <!-- TODO: check whether this supports a query with user_id -->
</index>
</declaration>