diff options
author | Andrew Dolgov <[email protected]> | 2021-02-25 10:35:01 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-25 10:35:01 +0300 |
commit | e858e979e9e6daf1888b007d509cc4afe5443811 (patch) | |
tree | 45cbd178660d5ac5295f57381b9b773e9688882a /schema/versions/pgsql/141.sql | |
parent | 49a9afadce6d0a737ddac8340029662a3c773fbd (diff) | |
parent | 1112922029d9eb8fe727d5adb1b5b0a1808946aa (diff) |
Merge branch 'master' into wip-new-prefs
Diffstat (limited to 'schema/versions/pgsql/141.sql')
-rw-r--r-- | schema/versions/pgsql/141.sql | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/schema/versions/pgsql/141.sql b/schema/versions/pgsql/141.sql new file mode 100644 index 000000000..679ca9498 --- /dev/null +++ b/schema/versions/pgsql/141.sql @@ -0,0 +1,11 @@ +create table ttrss_user_prefs2 ( + owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, + pref_name varchar(250) not null, + profile integer references ttrss_settings_profiles(id) ON DELETE CASCADE, + value text not null); + +create index ttrss_user_prefs2_owner_uid_index on ttrss_user_prefs2(owner_uid); +create index ttrss_user_prefs2_pref_name_idx on ttrss_user_prefs2(pref_name); +create unique index ttrss_user_prefs2_composite_idx on ttrss_user_prefs2(pref_name, owner_uid, coalesce(profile, -1)); + +update ttrss_version set schema_version = 141; |