diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-01-08 16:15:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-01-08 16:15:53 +0000 |
commit | 748c69985e7839ad645974460e75c033ea6102d2 (patch) | |
tree | 846ae87635d566ab1dd0078d5bcdac68f0d8a3eb /database | |
parent | df82a1edc4350a31c32f705b03ea3496e5250540 (diff) | |
download | brdo-748c69985e7839ad645974460e75c033ea6102d2.tar.gz brdo-748c69985e7839ad645974460e75c033ea6102d2.tar.bz2 |
- Patch by chx: critical bugfix: fixed the database upgrade path.
Diffstat (limited to 'database')
-rw-r--r-- | database/updates.inc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/database/updates.inc b/database/updates.inc index 10a73f3d7..e7a1a24be 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -1398,18 +1398,3 @@ function system_update_166() { return $ret; } -function system_update_167() { - $ret = array(); - switch ($GLOBALS['db_type']) { - case 'pgsql': - db_add_column($ret, 'system', 'weight', 'smallint', array('not null' => TRUE, 'default' => 0)); - $ret[] = update_sql('CREATE INDEX {system}_weight_idx ON {system} (weight)'); - break; - case 'mysql': - case 'mysqli': - $ret[] = update_sql("ALTER TABLE {system} ADD weight tinyint(3) unsigned default '0' NOT NULL, ADD KEY (weight)"); - break; - } - - return $ret; -} |