From 2d482b355685f949ffe32620b6f43e4e0eb4180e Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sun, 8 Dec 2024 08:56:12 -0500 Subject: [PATCH] Fixing null types in postgres. --- .../up.sql | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/migrations/2024-12-02-181601_add_report_combined_table/up.sql b/migrations/2024-12-02-181601_add_report_combined_table/up.sql index 8425f5d0d..8efb2a074 100644 --- a/migrations/2024-12-02-181601_add_report_combined_table/up.sql +++ b/migrations/2024-12-02-181601_add_report_combined_table/up.sql @@ -19,23 +19,23 @@ INSERT INTO report_combined (published, post_report_id, comment_report_id, priva SELECT published, id, - NULL, - NULL + NULL::int, + NULL::int FROM post_report UNION ALL SELECT published, - NULL, + NULL::int, id, - NULL + NULL::int FROM comment_report UNION ALL SELECT published, - NULL, - NULL, + NULL::int, + NULL::int, id FROM private_message_report;