diff --git a/files/helpers/config/const.py b/files/helpers/config/const.py index cafc36bc7..83080675b 100644 --- a/files/helpers/config/const.py +++ b/files/helpers/config/const.py @@ -898,7 +898,7 @@ POST_BODY_HTML_LENGTH_LIMIT = 200000 # do not make larger without altering the t COMMENT_BODY_LENGTH_LIMIT = 10000 # do not make larger without altering the table COMMENT_BODY_HTML_LENGTH_LIMIT = 40000 # do not make larger without altering the table -CSS_LENGTH_LIMIT = 20000 # do not make larger without altering the tables +CSS_LENGTH_LIMIT = 50000 # do not make larger without altering the tables COMMENT_MAX_DEPTH = 200 TRANSFER_MESSAGE_LENGTH_LIMIT = 200 # do not make larger than COMMENT_BODY_LENGTH_LIMIT MIN_REPOST_CHECK_URL_LENGTH = 9 # also change the constant in checkRepost() of submit.js diff --git a/migrations/20240817-larger-css.sql b/migrations/20240817-larger-css.sql new file mode 100644 index 000000000..5b741d82a --- /dev/null +++ b/migrations/20240817-larger-css.sql @@ -0,0 +1,4 @@ +alter table users alter column css type varchar(50000); +alter table users alter column profilecss type varchar(50000); +alter table holes alter column css type varchar(50000); +alter table chats alter column css type varchar(50000);