]> Untitled Git - lemmy.git/commitdiff
Fix length of post_report.original_post_name db field (fixes #2311) (#2315)
authorNutomic <me@nutomic.com>
Tue, 14 Jun 2022 05:20:01 +0000 (05:20 +0000)
committerGitHub <noreply@github.com>
Tue, 14 Jun 2022 05:20:01 +0000 (01:20 -0400)
migrations/2022-06-13-124806_post_report_name_length/down.sql [new file with mode: 0644]
migrations/2022-06-13-124806_post_report_name_length/up.sql [new file with mode: 0644]

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 (file)
index 0000000..f7b3a95
--- /dev/null
@@ -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 (file)
index 0000000..7663115
--- /dev/null
@@ -0,0 +1,2 @@
+-- adjust length limit to match post.name
+alter table post_report alter column original_post_name type varchar(200);