agriget/schema/versions/pgsql/93.sql

11 lines
318 B
MySQL
Raw Permalink Normal View History

2019-03-22 22:17:29 +08:00
begin;
alter table ttrss_feed_categories add column parent_cat integer;
update ttrss_feed_categories set parent_cat = NULL;
alter table ttrss_feed_categories add constraint "$2" FOREIGN KEY (parent_cat) REFERENCES ttrss_feed_categories(id) ON DELETE SET NULL;
update ttrss_version set schema_version = 93;
commit;