From: Nutomic Date: Tue, 14 Jun 2022 05:20:01 +0000 (+0000) Subject: Fix length of post_report.original_post_name db field (fixes #2311) (#2315) X-Git-Url: http://these/git/%7B%60/feeds/u/readmes/static/bundle.js?a=commitdiff_plain;h=c78de25652c7b4b313079ff26800050133a19ec9;p=lemmy.git Fix length of post_report.original_post_name db field (fixes #2311) (#2315) --- 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 00000000..f7b3a95e --- /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 00000000..76631151 --- /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);