diff --git a/migrations/20240228-fix-exact-searching.sql b/migrations/20240228-fix-exact-searching.sql index 4ea79040d..e69833509 100644 --- a/migrations/20240228-fix-exact-searching.sql +++ b/migrations/20240228-fix-exact-searching.sql @@ -1,2 +1,3 @@ +alter table comments add column body_ts2 tsvector GENERATED ALWAYS AS (to_tsvector('simple'::regconfig, (body)::text)) STORED; alter table comments drop column body_ts; -alter table comments add column body_ts tsvector GENERATED ALWAYS AS (to_tsvector('simple'::regconfig, (body)::text)) STORED; +alter table comments rename column body_ts2 to body_ts;