mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-02 09:11:22 +00:00
Dessalines
bc16cb8cb9
- This adds a report_count and unresolved_report_count to the post and comment aggregate tables. - Useful for front-ends wishing to show report links. - Fixes #4163
10 lines
398 B
SQL
10 lines
398 B
SQL
-- Adding report_count and unresolved_report_count
|
|
-- to the post and comment aggregate tables
|
|
ALTER TABLE post_aggregates
|
|
ADD COLUMN report_count bigint NOT NULL DEFAULT 0,
|
|
ADD COLUMN unresolved_report_count bigint NOT NULL DEFAULT 0;
|
|
|
|
ALTER TABLE comment_aggregates
|
|
ADD COLUMN report_count bigint NOT NULL DEFAULT 0,
|
|
ADD COLUMN unresolved_report_count bigint NOT NULL DEFAULT 0;
|
|
|