workaround against mysql refusing to have defaults for text values (closes #137)
This commit is contained in:
parent
766d42aed5
commit
0d276d67b0
2 changed files with 3 additions and 3 deletions
|
@ -988,7 +988,7 @@
|
||||||
// db_query($link, "COMMIT");
|
// db_query($link, "COMMIT");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$error_msg = db_escape_string(magpie_error());
|
$error_msg = mb_substr(db_escape_string(magpie_error()), 0, 250);
|
||||||
db_query($link,
|
db_query($link,
|
||||||
"UPDATE ttrss_feeds SET last_error = '$error_msg',
|
"UPDATE ttrss_feeds SET last_error = '$error_msg',
|
||||||
last_updated = NOW() WHERE id = '$feed'");
|
last_updated = NOW() WHERE id = '$feed'");
|
||||||
|
|
|
@ -59,7 +59,7 @@ create table ttrss_feeds (id integer not null auto_increment primary key,
|
||||||
update_interval integer not null default 0,
|
update_interval integer not null default 0,
|
||||||
purge_interval integer not null default 0,
|
purge_interval integer not null default 0,
|
||||||
last_updated datetime default 0,
|
last_updated datetime default 0,
|
||||||
last_error text not null default '',
|
last_error varchar(250) not null default '',
|
||||||
site_url varchar(250) not null default '',
|
site_url varchar(250) not null default '',
|
||||||
auth_login varchar(250) not null default '',
|
auth_login varchar(250) not null default '',
|
||||||
auth_pass varchar(250) not null default '',
|
auth_pass varchar(250) not null default '',
|
||||||
|
@ -213,7 +213,7 @@ create table ttrss_prefs (pref_name varchar(250) not null primary key,
|
||||||
type_id integer not null,
|
type_id integer not null,
|
||||||
section_id integer not null default 1,
|
section_id integer not null default 1,
|
||||||
short_desc text not null,
|
short_desc text not null,
|
||||||
help_text text not null default '',
|
help_text varchar(300) not null default '',
|
||||||
def_value text not null,
|
def_value text not null,
|
||||||
index(type_id),
|
index(type_id),
|
||||||
foreign key (type_id) references ttrss_prefs_types(id),
|
foreign key (type_id) references ttrss_prefs_types(id),
|
||||||
|
|
Loading…
Reference in a new issue