]> git.wh0rd.org - tt-rss.git/blame - schema/versions/pgsql/63.sql
add schema version 177 upgrade scripts
[tt-rss.git] / schema / versions / pgsql / 63.sql
CommitLineData
d9084cf2
AD
1begin;
2
3create table ttrss_settings_profiles(id serial not null primary key,
4 title varchar(250) not null,
5 owner_uid integer not null references ttrss_users(id) on delete cascade);
6
7alter table ttrss_user_prefs add column profile integer;
8update ttrss_user_prefs set profile = NULL;
9
10alter table ttrss_user_prefs add constraint "$3" FOREIGN KEY (profile) REFERENCES ttrss_settings_profiles(id) ON DELETE CASCADE;
11
12insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_THEME_ID', 3, '0', '', 1);
13
14update ttrss_version set schema_version = 63;
15
16commit;