diff --git a/update.php b/update.php index fb8730718aeadab88e314e5b907304e834211375..a073c922b4cc9bd452ef6408e2cc9a123813140c 100644 --- a/update.php +++ b/update.php @@ -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; }