UNDO: schema: support for audio enclosure in ttrss_entries

This commit is contained in:
Andrew Dolgov 2006-01-12 14:19:13 +01:00
parent c09ec856aa
commit dbf4a4cf05
4 changed files with 3 additions and 12 deletions

View File

@ -82,7 +82,6 @@ create table ttrss_entries (id integer not null primary key auto_increment,
no_orig_date bool not null default 0,
date_entered datetime not null,
num_comments integer not null default 0,
audio_enclosure varchar(250) not null default '',
comments varchar(250) not null default '') TYPE=InnoDB;
create table ttrss_user_entries (

View File

@ -74,7 +74,6 @@ create table ttrss_entries (id serial not null primary key,
no_orig_date boolean not null default false,
date_entered timestamp not null default NOW(),
num_comments integer not null default 0,
audio_enclosure varchar(250) not null default '',
comments varchar(250) not null default '');
create index ttrss_entries_guid_index on ttrss_entries(guid);

View File

@ -1,3 +1,5 @@
begin;
alter table ttrss_feeds add column parent_feed integer;
alter table ttrss_feeds add foreign key (parent_feed) references ttrss_feeds(id) on delete set null;
@ -12,8 +14,4 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) valu
update ttrss_version set schema_version = 4;
alter table ttrss_entries add column audio_enclosure varchar(250);
update ttrss_entries set audio_enclosure = '';
alter table ttrss_entries change audio_enclosure private varchar(250) not null;
alter table ttrss_entries alter column audio_enclosure set default '';
commit;

View File

@ -12,11 +12,6 @@ alter table ttrss_feeds alter column private set default false;
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('HIDE_READ_FEEDS', 1, 'false', 'Hide feeds with no unread messages',2);
alter table ttrss_entries add column audio_enclosure varchar(250);
update ttrss_entries set audio_enclosure = '';
alter table ttrss_entries alter column audio_enclosure set not null;
alter table ttrss_entries alter column audio_enclosure set default '';
update ttrss_version set schema_version = 4;
commit;