aboutsummaryrefslogtreecommitdiffstats
path: root/db_structure.xml
diff options
context:
space:
mode:
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>