ttrss_version table (schema updated)

This commit is contained in:
Andrew Dolgov 2005-11-10 05:34:36 +01:00
parent 9826bd2ed9
commit 5f171894d1
3 changed files with 17 additions and 0 deletions

View file

@ -84,3 +84,10 @@ create table ttrss_tags (id integer primary key auto_increment,
index (post_id), index (post_id),
foreign key (post_id) references ttrss_entries(id) ON DELETE CASCADE) TYPE=InnoDB; foreign key (post_id) references ttrss_entries(id) ON DELETE CASCADE) TYPE=InnoDB;
drop table ttrss_version;
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
insert into ttrss_version values (1);

View file

@ -79,3 +79,9 @@ create table ttrss_tags (id serial primary key,
tag_name varchar(250) not null, tag_name varchar(250) not null,
post_id integer references ttrss_entries(id) ON DELETE CASCADE not null); post_id integer references ttrss_entries(id) ON DELETE CASCADE not null);
drop table ttrss_version;
create table ttrss_version (schema_version int not null);
insert into ttrss_version values (1);

View file

@ -12,4 +12,8 @@ alter table ttrss_feeds alter column last_error set default '';
alter table ttrss_feeds alter column site_url set not null; alter table ttrss_feeds alter column site_url set not null;
alter table ttrss_feeds alter column site_url set default ''; alter table ttrss_feeds alter column site_url set default '';
create table ttrss_version (schema_version int not null);
insert into ttrss_version values (1);
commit; commit;