fix pgsql upgrade script

This commit is contained in:
Andrew Dolgov 2006-02-12 06:26:20 +01:00
parent a561fe7304
commit baf79bb1b7
1 changed files with 4 additions and 6 deletions

View File

@ -1,11 +1,9 @@
begin; begin;
create table ttrss_scheduled_updates (id integer not null primary key auto_increment, create table ttrss_scheduled_updates (id serial not null primary key,
owner_uid integer not null, owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,
feed_id integer default null, feed_id integer default null references ttrss_feeds(id) ON DELETE CASCADE,
entered datetime not null, entered timestamp not null default NOW());
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE) TYPE=InnoDB;
update ttrss_version set schema_version = 5; update ttrss_version set schema_version = 5;