diff options
author | Andrew Dolgov <[email protected]> | 2006-02-12 06:26:20 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-02-12 06:26:20 +0100 |
commit | baf79bb1b710d54acd70dda9048629094386ac65 (patch) | |
tree | 9946b4a6550c47fa9fd35e6237d40072ebc0eec0 /schema/upgrade-1.1.2-1.1.3-pgsql.sql | |
parent | a561fe730487c5c4fd4b7a7b236163cdd7022d8d (diff) |
fix pgsql upgrade script
Diffstat (limited to 'schema/upgrade-1.1.2-1.1.3-pgsql.sql')
-rw-r--r-- | schema/upgrade-1.1.2-1.1.3-pgsql.sql | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/schema/upgrade-1.1.2-1.1.3-pgsql.sql b/schema/upgrade-1.1.2-1.1.3-pgsql.sql index e3ddb0357..1292daa3c 100644 --- a/schema/upgrade-1.1.2-1.1.3-pgsql.sql +++ b/schema/upgrade-1.1.2-1.1.3-pgsql.sql @@ -1,11 +1,9 @@ begin; -create table ttrss_scheduled_updates (id integer not null primary key auto_increment, - owner_uid integer not null, - feed_id integer default null, - entered datetime not null, - foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE, - foreign key (feed_id) references ttrss_feeds(id) ON DELETE CASCADE) TYPE=InnoDB; +create table ttrss_scheduled_updates (id serial not null primary key, + owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, + feed_id integer default null references ttrss_feeds(id) ON DELETE CASCADE, + entered timestamp not null default NOW()); update ttrss_version set schema_version = 5; |