summaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-11-19 09:18:34 +0100
committerAndrew Dolgov <[email protected]>2005-11-19 09:18:34 +0100
commit05732aa0b6a95d6d6c5986b28077d7fe28edab0c (patch)
treef1913f2efa184f14b3bacefe95b3272e6c9ef9e5 /schema
parentdaa25e8a501a83cc23632d0e17b23fe468c972c0 (diff)
misc new schema support related work
Diffstat (limited to 'schema')
-rw-r--r--schema/ttrss_schema_pgsql.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql
index d3e691b3c..e1d07c425 100644
--- a/schema/ttrss_schema_pgsql.sql
+++ b/schema/ttrss_schema_pgsql.sql
@@ -53,6 +53,7 @@ create table ttrss_entries (id serial not null primary key,
index (guid), index(title));
create table ttrss_user_entries (
+ int_id serial not null primary key,
ref_id integer not null references ttrss_entries(id) ON DELETE CASCADE,
feed_id int references ttrss_feeds(id) ON DELETE CASCADE not null,
owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,
@@ -100,7 +101,7 @@ insert into ttrss_labels (owner_uid,sql_exp,description) values (1,
create table ttrss_tags (id serial not null primary key,
tag_name varchar(250) not null,
owner_uid integer not null references ttrss_users(id) on delete cascade,
- post_id integer references ttrss_entries(id) ON DELETE CASCADE not null);
+ post_int_id integer references ttrss_user_entries(int_id) ON DELETE CASCADE not null);
create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid);