From 1e1ac12ecc3249529af9f8b03ac2a70ffeb1214d Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 30 Oct 2024 10:59:21 +0100 Subject: [PATCH] Run analyze after changing post.url type (ref #4983) --- .../down.sql | 2 ++ .../up.sql | 2 ++ 2 files changed, 4 insertions(+) rename migrations/{2024-08-03-155932_increase_post_url_max_length => 2024-10-30-155932_increase_post_url_max_length}/down.sql (73%) rename migrations/{2024-08-03-155932_increase_post_url_max_length => 2024-10-30-155932_increase_post_url_max_length}/up.sql (91%) diff --git a/migrations/2024-08-03-155932_increase_post_url_max_length/down.sql b/migrations/2024-10-30-155932_increase_post_url_max_length/down.sql similarity index 73% rename from migrations/2024-08-03-155932_increase_post_url_max_length/down.sql rename to migrations/2024-10-30-155932_increase_post_url_max_length/down.sql index d25918578..7e4feef3d 100644 --- a/migrations/2024-08-03-155932_increase_post_url_max_length/down.sql +++ b/migrations/2024-10-30-155932_increase_post_url_max_length/down.sql @@ -1,3 +1,5 @@ ALTER TABLE post ALTER COLUMN url TYPE varchar(512); +ANALYZE post (url); + diff --git a/migrations/2024-08-03-155932_increase_post_url_max_length/up.sql b/migrations/2024-10-30-155932_increase_post_url_max_length/up.sql similarity index 91% rename from migrations/2024-08-03-155932_increase_post_url_max_length/up.sql rename to migrations/2024-10-30-155932_increase_post_url_max_length/up.sql index 7c6818d22..8e5a3a9ce 100644 --- a/migrations/2024-08-03-155932_increase_post_url_max_length/up.sql +++ b/migrations/2024-10-30-155932_increase_post_url_max_length/up.sql @@ -3,3 +3,5 @@ ALTER TABLE post ALTER COLUMN url TYPE varchar(2000); +ANALYZE post (url); +