less downtime

pull/225/head
Aevann 2024-02-28 20:01:54 +02:00
parent 7974261464
commit 90720233eb
1 changed files with 2 additions and 1 deletions

View File

@ -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;