Skip to content
Snippets Groups Projects
Commit 534c6d4f authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent 84d4e12c
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment