From 98daede8c46cb1e6c3c7102bdd81879593fb97ca Mon Sep 17 00:00:00 2001 From: Fredrik Ringqvist <35255659+fredrikphotowall@users.noreply.github.com> Date: Tue, 20 Aug 2024 13:59:55 +0200 Subject: [PATCH] Ensure display_name is null, not empty string (#413) --- migrations/000.493.sql | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 migrations/000.493.sql diff --git a/migrations/000.493.sql b/migrations/000.493.sql new file mode 100644 index 0000000..8ad69d6 --- /dev/null +++ b/migrations/000.493.sql @@ -0,0 +1,4 @@ +-- Ensure display_name values are null, and not empty strings. +-- So that coalesce(display_name, name) logic works as intended. +-- There are five of these values, for hidden category, the source is a mass import excel. +UPDATE category_texts SET display_name = null where category_id = 1689 and display_name is not null;