Page MenuHomePhabricator

D8732.diff
No OneTemporary

D8732.diff

diff --git a/keyserver/src/database/migration-config.js b/keyserver/src/database/migration-config.js
--- a/keyserver/src/database/migration-config.js
+++ b/keyserver/src/database/migration-config.js
@@ -499,6 +499,21 @@
`);
},
],
+ [
+ 43,
+ () =>
+ dbQuery(
+ SQL`
+ UPDATE threads
+ SET pinned_count = (
+ SELECT COUNT(*)
+ FROM messages
+ WHERE messages.thread = threads.id
+ AND messages.pinned = 1
+ )
+ `,
+ ),
+ ],
]);
const newDatabaseVersion: number = Math.max(...migrations.keys());

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 2:46 PM (19 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2694939
Default Alt Text
D8732.diff (621 B)

Event Timeline