drop table if exists ttrss_prefs_types;
drop table if exists ttrss_prefs_sections;
drop table if exists ttrss_tags;
+drop table if exists ttrss_enclosures;
drop table if exists ttrss_entry_comments;
drop table if exists ttrss_user_entries;
drop table if exists ttrss_entries;
insert into ttrss_version values (26);
+create table ttrss_enclosures (id serial not null primary key,
+ content_url text not null,
+ content_type varchar(250) not null,
+ post_id integer not null,
+ index (post_id),
+ foreign key (post_id) references ttrss_entries(id) ON DELETE cascade);
+
create table ttrss_prefs_types (id integer not null primary key,
type_name varchar(100) not null) TYPE=InnoDB;
drop table ttrss_prefs_types;
drop table ttrss_prefs_sections;
drop table ttrss_tags;
+drop table ttrss_enclosures;
drop table ttrss_entry_comments;
drop table ttrss_user_entries;
drop table ttrss_entries;
insert into ttrss_version values (26);
+create table ttrss_enclosures (id serial not null primary key,
+ content_url text not null,
+ content_type varchar(250) not null,
+ post_id integer references ttrss_entries(id) ON DELETE cascade NOT NULL);
+
create table ttrss_prefs_types (id integer not null primary key,
type_name varchar(100) not null);
alter table ttrss_users add column created datetime;
alter table ttrss_users alter column created set default null;
+create table ttrss_enclosures (id serial not null primary key,
+ content_url text not null,
+ content_type varchar(250) not null,
+ post_id integer not null,
+ index (post_id),
+ foreign key (post_id) references ttrss_entries(id) ON DELETE cascade);
+
update ttrss_version set schema_version = 26;
alter table ttrss_users add column created timestamp;
alter table ttrss_users alter column created set default null;
+create table ttrss_enclosures (id serial not null primary key,
+ content_url text not null,
+ content_type varchar(250) not null,
+ post_id integer not null,
+ index (post_id),
+ foreign key (post_id) references ttrss_entries(id) ON DELETE cascade);
+
update ttrss_version set schema_version = 26;