From 8290eb795a57e13cd9d242084c48fd05c39146ac Mon Sep 17 00:00:00 2001 From: swaggboi Date: Sat, 30 Jul 2022 02:41:26 -0400 Subject: [PATCH] Reduce max size of thread titles --- migrations/2/down.sql | 3 +++ migrations/2/up.sql | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 migrations/2/down.sql create mode 100644 migrations/2/up.sql diff --git a/migrations/2/down.sql b/migrations/2/down.sql new file mode 100644 index 0000000..074d3cd --- /dev/null +++ b/migrations/2/down.sql @@ -0,0 +1,3 @@ +ALTER TABLE threads +ALTER COLUMN thread_title + TYPE VARCHAR(256); diff --git a/migrations/2/up.sql b/migrations/2/up.sql new file mode 100644 index 0000000..2e46ecd --- /dev/null +++ b/migrations/2/up.sql @@ -0,0 +1,3 @@ +ALTER TABLE threads +ALTER COLUMN thread_title + TYPE VARCHAR(128);