mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 06:36:14 +00:00
42a6d8ab0f
* Fix not-equals check in post aggregates update trigger Should fix #4836 * Create up.sql * Create down.sql * Update down.sql
12 lines
265 B
SQL
12 lines
265 B
SQL
-- Fix rows that were not updated because of the old incorrect trigger
|
|
UPDATE
|
|
post_aggregates
|
|
SET
|
|
featured_local = post.featured_local
|
|
FROM
|
|
post
|
|
WHERE
|
|
post.id = post_aggregates.post_id
|
|
AND post.featured_local != post_aggregates.featured_local;
|
|
|