agriget/schema/versions/pgsql/43.sql
2019-03-22 10:17:29 -04:00

8 lines
317 B
SQL

alter table ttrss_labels rename column sql_exp to sql_exp_old;
alter table ttrss_labels add column sql_exp text;
update ttrss_labels set sql_exp = sql_exp_old;
alter table ttrss_labels alter column sql_exp set not null;
alter table ttrss_labels drop column sql_exp_old;
update ttrss_version set schema_version = 43;