From 4690aff1e58311aa323a427e1cd620b9aa43dd0d Mon Sep 17 00:00:00 2001 From: Nutomic Date: Mon, 4 Nov 2024 14:16:54 +0100 Subject: [PATCH] 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 --- .../2024-08-03-155932_increase_post_url_max_length/down.sql | 2 ++ .../2024-08-03-155932_increase_post_url_max_length/up.sql | 2 ++ 2 files changed, 4 insertions(+) diff --git a/migrations/2024-08-03-155932_increase_post_url_max_length/down.sql b/migrations/2024-08-03-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-08-03-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-08-03-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-08-03-155932_increase_post_url_max_length/up.sql @@ -3,3 +3,5 @@ ALTER TABLE post ALTER COLUMN url TYPE varchar(2000); +ANALYZE post (url); +