error_reporting(DEFAULT_ERROR_LEVEL); */
- define('SCHEMA_VERSION', 16);
-
require_once "sanity_check.php";
require_once "config.php";
require_once "functions.php";
define('EXPECTED_CONFIG_VERSION', 7);
+ define('SCHEMA_VERSION', 17);
if (!file_exists("config.php")) {
print __("<b>Fatal Error</b>: You forgot to copy
create table ttrss_version (schema_version int not null) TYPE=InnoDB;
-insert into ttrss_version values (16);
+insert into ttrss_version values (17);
create table ttrss_prefs_types (id integer not null primary key,
type_name varchar(100) not null) TYPE=InnoDB;
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_DEFAULT_VIEW_LIMIT', 3, '30', '', 1);
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_PREFS_ACTIVE_TAB', 3, '', '', 1);
+
create table ttrss_user_prefs (
owner_uid integer not null,
pref_name varchar(250),
create table ttrss_version (schema_version int not null);
-insert into ttrss_version values (16);
+insert into ttrss_version values (17);
create table ttrss_prefs_types (id integer not null primary key,
type_name varchar(100) not null);
insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_DEFAULT_VIEW_LIMIT', 3, '30', '', 1);
+insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_PREFS_ACTIVE_TAB', 3, '', '', 1);
+
create table ttrss_user_prefs (
owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE,
pref_name varchar(250) not null references ttrss_prefs(pref_name) ON DELETE CASCADE,
render_login_form($link);
exit;
}
-
- define('SCHEMA_VERSION', 16);
+
?>
}
if (!$op) {
- print "<p class='warning'>".__("<b>Warning:</b> Please backup your database before proceeding.")."</p>";
+ print_warning("Please backup your database before proceeding.");
print "<p>" . T_sprintf("Your Tiny Tiny RSS database needs update to the latest version (<b>%d</b> to <b>%d</b>).", $version, $latest_version) . "</p>";
color : black;
}
+div.notice {
+ background : #ffffff;
+ border : 1px solid #88b0f0;
+ width : 50%;
+ padding : 5px;
+ margin : 0px 0px 5px 0px;
+ font-size : 9pt;
+}
+
+div.warning {
+ background : #fff7d5;
+ border : 1px solid #d7c47a;
+ font-size : 9pt;
+ width : 50%;
+ padding : 5px;
+ margin : 0px 0px 5px 0px;
+}
+
+
+div.warning img, div.notice img {
+ vertical-align : middle;
+ padding : 5px;
+}
+