bump schema version

This commit is contained in:
Andrew Dolgov 2005-12-29 19:03:24 +01:00
parent 3b0027a4be
commit 41765fef9b
5 changed files with 7 additions and 3 deletions

View File

@ -28,7 +28,7 @@
exit;
}
define('SCHEMA_VERSION', 3);
define('SCHEMA_VERSION', 4);
require_once "sanity_check.php";
require_once "config.php";

View File

@ -169,7 +169,7 @@ create table ttrss_tags (id integer primary key auto_increment,
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
insert into ttrss_version values (3);
insert into ttrss_version values (4);
create table ttrss_prefs_types (id integer not null primary key,
type_name varchar(100) not null) TYPE=InnoDB;

View File

@ -151,7 +151,7 @@ create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid);
create table ttrss_version (schema_version int not null);
insert into ttrss_version values (3);
insert into ttrss_version values (4);
create table ttrss_prefs_types (id integer not null primary key,
type_name varchar(100) not null);

View File

@ -3,4 +3,6 @@ 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;
update ttrss_version set schema_version = 4;
commit;

View File

@ -3,4 +3,6 @@ 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;
update ttrss_version set schema_version = 4;
commit;