lemmy/migrations/2024-08-03-155932_increase_post_url_max_length/up.sql
Nutomic 6c22cdeb96 Run analyze after changing post.url type (ref #4983) (#5148)
* Run analyze after changing post.url type (ref #4983)

* rename back

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2024-11-04 14:17:22 +01:00

7 lines
243 B
SQL

-- Change the post url max limit to 2000
-- From here: https://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers#417184
ALTER TABLE post
ALTER COLUMN url TYPE varchar(2000);
ANALYZE post (url);