Commit 534c6d4f authored by Dries's avatar Dries

- Patch #42390 by chx: field 'translation' doesn't have a default value query.

parent 84d4e12c
......@@ -395,7 +395,7 @@ CREATE TABLE locales_source (
CREATE TABLE locales_target (
lid int(11) NOT NULL default '0',
translation blob NOT NULL,
translation blob NOT NULL default '',
locale varchar(12) NOT NULL default '',
plid int(11) NOT NULL default '0',
plural int(1) NOT NULL default '0',
......
......@@ -1698,3 +1698,13 @@ function system_update_174() {
}
return array();
}
function system_update_175() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {locales_target} ALTER COLUMN translation SET DEFAULT ''");
}
return $ret;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment