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() {
switch ($GLOBALS['db_type']) {
case 'pgsql':
$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;
case 'mysql':
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;
}
......
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