From e4b30f6e61877ff4bf017298eb23bd68a4aa8cc0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 11 Aug 2024 19:57:11 +0300 Subject: [PATCH] increase title_html size to accomodate marsify award --- files/helpers/config/const.py | 2 +- ...0240811-increase-title_html-length-to-accomodate-marsify.sql | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 migrations/20240811-increase-title_html-length-to-accomodate-marsify.sql diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index 316cba976..6d4b7c33e 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -883,7 +883,7 @@ EMOJI_SRCS = ['files/assets/emojis.csv'] PIN_LIMIT = 10 POST_TITLE_LENGTH_LIMIT = 500 # do not make larger than 500 without altering the table -POST_TITLE_HTML_LENGTH_LIMIT = 1500 # do not make larger than 1500 without altering the table +POST_TITLE_HTML_LENGTH_LIMIT = 5000 # do not make larger than 5000 without altering the table def POST_BODY_LENGTH_LIMIT(v): if v.patron: return 100000 diff --git a/migrations/20240811-increase-title_html-length-to-accomodate-marsify.sql b/migrations/20240811-increase-title_html-length-to-accomodate-marsify.sql new file mode 100644 index 000000000..8c268ecde --- /dev/null +++ b/migrations/20240811-increase-title_html-length-to-accomodate-marsify.sql @@ -0,0 +1 @@ +alter table posts alter column title_html type varchar(5000);