schema: add ttrss_feeds.always_display_enclosures
This commit is contained in:
parent
422e7d24f6
commit
e0382fd6df
4 changed files with 16 additions and 2 deletions
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
6
schema/versions/mysql/57.sql
Normal file
6
schema/versions/mysql/57.sql
Normal 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;
|
6
schema/versions/pgsql/57.sql
Normal file
6
schema/versions/pgsql/57.sql
Normal 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;
|
Loading…
Reference in a new issue