diff options
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/update.php b/update.php index fb8730718..a073c922b 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; } |