summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-08 09:09:08 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-08 09:09:08 +0000
commitac3b446e4b3ccb69bb77bb2a18975ef7afc36aa1 (patch)
tree4696930944098d9c8c4bdd607eba25199a530ff7 /update.php
parente6b78e287ddde3a6c679c19fb7c73dd405826985 (diff)
downloadbrdo-ac3b446e4b3ccb69bb77bb2a18975ef7afc36aa1.tar.gz
brdo-ac3b446e4b3ccb69bb77bb2a18975ef7afc36aa1.tar.bz2
- Patch #40341 by Cvbge: corrected the default column value.
Diffstat (limited to 'update.php')
-rw-r--r--update.php4
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;
}