schema: add ttrss_feeds.always_display_enclosures

This commit is contained in:
Andrew Dolgov 2009-10-06 14:14:55 +04:00
parent 422e7d24f6
commit e0382fd6df
4 changed files with 16 additions and 2 deletions

View file

@ -100,6 +100,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
auth_pass_encrypted boolean not null default false, auth_pass_encrypted boolean not null default false,
last_viewed datetime default null, last_viewed datetime default null,
last_update_started datetime default null, last_update_started datetime default null,
always_display_enclosures boolean not null default false,
update_method integer not null default 0, update_method integer not null default 0,
index(owner_uid), index(owner_uid),
foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE, foreign key (owner_uid) references ttrss_users(id) ON DELETE CASCADE,
@ -225,7 +226,7 @@ create table ttrss_tags (id integer primary key auto_increment,
create table ttrss_version (schema_version int not null) TYPE=InnoDB; create table ttrss_version (schema_version int not null) TYPE=InnoDB;
insert into ttrss_version values (56); insert into ttrss_version values (57);
create table ttrss_enclosures (id serial not null primary key, create table ttrss_enclosures (id serial not null primary key,
content_url text not null, content_url text not null,

View file

@ -78,6 +78,7 @@ create table ttrss_feeds (id serial not null primary key,
last_viewed timestamp default null, last_viewed timestamp default null,
last_update_started timestamp default null, last_update_started timestamp default null,
update_method integer not null default 0, update_method integer not null default 0,
always_display_enclosures boolean not null default false,
auth_pass_encrypted boolean not null default false); auth_pass_encrypted boolean not null default false);
create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid); create index ttrss_feeds_owner_uid_index on ttrss_feeds(owner_uid);
@ -201,7 +202,7 @@ create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid);
create table ttrss_version (schema_version int not null); create table ttrss_version (schema_version int not null);
insert into ttrss_version values (56); insert into ttrss_version values (57);
create table ttrss_enclosures (id serial not null primary key, create table ttrss_enclosures (id serial not null primary key,
content_url text not null, content_url text not null,

View file

@ -0,0 +1,6 @@
alter table ttrss_feeds add column always_display_enclosures boolean;
update ttrss_feeds set always_display_enclosures = false;
alter table ttrss_feeds change always_display_enclosures always_display_enclosures boolean not null;
alter table ttrss_feeds alter column always_display_enclosures set default false;
update ttrss_version set schema_version = 57;

View file

@ -0,0 +1,6 @@
alter table ttrss_feeds add column always_display_enclosures boolean;
update ttrss_feeds set always_display_enclosures = false;
alter table ttrss_feeds alter column always_display_enclosures set not null;
alter table ttrss_feeds alter column always_display_enclosures set default false;
update ttrss_version set schema_version = 57;