Fixing null types in postgres.

This commit is contained in:
Dessalines 2024-12-08 08:56:12 -05:00
parent 02bd2f6764
commit 2d482b3556

View file

@ -19,23 +19,23 @@ INSERT INTO report_combined (published, post_report_id, comment_report_id, priva
SELECT SELECT
published, published,
id, id,
NULL, NULL::int,
NULL NULL::int
FROM FROM
post_report post_report
UNION ALL UNION ALL
SELECT SELECT
published, published,
NULL, NULL::int,
id, id,
NULL NULL::int
FROM FROM
comment_report comment_report
UNION ALL UNION ALL
SELECT SELECT
published, published,
NULL, NULL::int,
NULL, NULL::int,
id id
FROM FROM
private_message_report; private_message_report;