Commit ac3b446e authored by Dries's avatar Dries

- Patch #40341 by Cvbge: corrected the default column value.

parent e6b78e28
...@@ -177,12 +177,12 @@ function update_fix_schema_version() { ...@@ -177,12 +177,12 @@ function update_fix_schema_version() {
switch ($GLOBALS['db_type']) { switch ($GLOBALS['db_type']) {
case 'pgsql': case 'pgsql':
$ret = array(); $ret = array();
db_add_column($ret, 'system', 'schema_version', 'smallint', array('not null' => TRUE, 'default' => 1)); db_add_column($ret, 'system', 'schema_version', 'smallint', array('not null' => TRUE, 'default' => 0));
break; break;
case 'mysql': case 'mysql':
case 'mysqli': case 'mysqli':
db_query('ALTER TABLE {system} ADD schema_version smallint(2) unsigned not null'); db_query('ALTER TABLE {system} ADD schema_version smallint(2) unsigned not null default 0');
break; break;
} }
......
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