From 41ad863fac68555d4cf61f7e32abd1c965363382 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Tue, 14 Jun 2022 05:20:01 +0000 Subject: [PATCH] Fix length of post_report.original_post_name db field (fixes #2311) (#2315) --- migrations/2022-06-13-124806_post_report_name_length/down.sql | 1 + migrations/2022-06-13-124806_post_report_name_length/up.sql | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 migrations/2022-06-13-124806_post_report_name_length/down.sql create mode 100644 migrations/2022-06-13-124806_post_report_name_length/up.sql diff --git a/migrations/2022-06-13-124806_post_report_name_length/down.sql b/migrations/2022-06-13-124806_post_report_name_length/down.sql new file mode 100644 index 0000000000..f7b3a95e64 --- /dev/null +++ b/migrations/2022-06-13-124806_post_report_name_length/down.sql @@ -0,0 +1 @@ +alter table post_report alter column original_post_name type varchar(100); diff --git a/migrations/2022-06-13-124806_post_report_name_length/up.sql b/migrations/2022-06-13-124806_post_report_name_length/up.sql new file mode 100644 index 0000000000..7663115124 --- /dev/null +++ b/migrations/2022-06-13-124806_post_report_name_length/up.sql @@ -0,0 +1,2 @@ +-- adjust length limit to match post.name +alter table post_report alter column original_post_name type varchar(200);