Set DESC as index options instead of the expression

This commit is contained in:
Cédric Krier
2026-01-14 00:35:13 +01:00
parent 9535c89f3f
commit 89bc2930df
+2 -1
View File
@@ -369,8 +369,9 @@ class ModelSQL(ModelStorage):
history_table,
(Coalesce(
history_table.write_date,
history_table.create_date).desc,
history_table.create_date),
Index.Range()),
order='DESC',
include=[
Column(history_table, '__id'),
history_table.id]),