bump schema version
This commit is contained in:
parent
5c563acde0
commit
49756fc36c
6 changed files with 9 additions and 5 deletions
|
@ -28,7 +28,7 @@
|
|||
exit;
|
||||
}
|
||||
|
||||
define('SCHEMA_VERSION', 2);
|
||||
define('SCHEMA_VERSION', 3);
|
||||
|
||||
require_once "sanity_check.php";
|
||||
require_once "config.php";
|
||||
|
|
|
@ -166,7 +166,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 (2);
|
||||
insert into ttrss_version values (3);
|
||||
|
||||
create table ttrss_prefs_types (id integer not null primary key,
|
||||
type_name varchar(100) not null) TYPE=InnoDB;
|
||||
|
|
|
@ -150,7 +150,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 (2);
|
||||
insert into ttrss_version values (3);
|
||||
|
||||
create table ttrss_prefs_types (id integer not null primary key,
|
||||
type_name varchar(100) not null);
|
||||
|
|
|
@ -38,4 +38,6 @@ alter table ttrss_users alter column email set default '';
|
|||
|
||||
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('ENABLE_SEARCH_TOOLBAR', 1, 'false', 'Enable search toolbar',2);
|
||||
|
||||
update ttrss_version set schema_version = 3;
|
||||
|
||||
commit;
|
||||
|
|
|
@ -38,4 +38,6 @@ alter table ttrss_users alter column email set default '';
|
|||
|
||||
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('ENABLE_SEARCH_TOOLBAR', 1, 'false', 'Enable search toolbar',2);
|
||||
|
||||
update ttrss_version set schema_version = 3;
|
||||
|
||||
commit;
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
require_once "functions.php";
|
||||
require_once "db.php";
|
||||
|
||||
define('MAX_SOURCE_SCHEMA_VERSION', 2);
|
||||
define('TARGET_SCHEMA_VERSION', 2);
|
||||
define('MAX_SOURCE_SCHEMA_VERSION', 3);
|
||||
define('TARGET_SCHEMA_VERSION', 3);
|
||||
|
||||
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
|
||||
|
||||
|
|
Loading…
Reference in a new issue