Increase message body limit

This commit is contained in:
swagg boi 2021-12-19 18:31:41 -05:00
parent 3849ceffae
commit b7bb80cbe0
3 changed files with 5 additions and 1 deletions

View file

@ -77,6 +77,6 @@ app->secrets(app->config->{'secrets'}) || die $@;
app->message->max_posts(app->config->{'max_posts'}) app->message->max_posts(app->config->{'max_posts'})
if app->config->{'max_posts'}; if app->config->{'max_posts'};
app->pg->migrations->from_dir('migrations')->migrate(1); app->pg->migrations->from_dir('migrations')->migrate(2);
app->start(); app->start();

2
migrations/2/down.sql Normal file
View file

@ -0,0 +1,2 @@
ALTER TABLE messages
ALTER COLUMN msg TYPE VARCHAR(255);

2
migrations/2/up.sql Normal file
View file

@ -0,0 +1,2 @@
ALTER TABLE messages
ALTER COLUMN msg TYPE VARCHAR(512);