mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-15 22:45:56 +00:00
15 lines
417 B
MySQL
15 lines
417 B
MySQL
|
DELETE FROM report_combined
|
||
|
WHERE community_report_id IS NOT NULL;
|
||
|
|
||
|
ALTER TABLE report_combined
|
||
|
DROP CONSTRAINT report_combined_check,
|
||
|
ADD CHECK (num_nonnulls (post_report_id, comment_report_id, private_message_report_id) = 1),
|
||
|
DROP COLUMN community_report_id;
|
||
|
|
||
|
DROP TABLE community_report CASCADE;
|
||
|
|
||
|
ALTER TABLE community_aggregates
|
||
|
DROP COLUMN report_count,
|
||
|
DROP COLUMN unresolved_report_count;
|
||
|
|