diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-11-24 11:10:48 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-11-24 11:10:48 +0000 |
commit | 4df25c20cbfe5693e4860e0a2cdcc69714940bf0 (patch) | |
tree | 51ed5db5cd23ebb6c4cf72b4505d3299d21b89d4 /modules/system/system.install | |
parent | 08564574055f2ea3be4c5817a18f775ba80843dd (diff) | |
download | brdo-4df25c20cbfe5693e4860e0a2cdcc69714940bf0.tar.gz brdo-4df25c20cbfe5693e4860e0a2cdcc69714940bf0.tar.bz2 |
- Corrected previous patch. Thanks Robert.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r-- | modules/system/system.install | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/modules/system/system.install b/modules/system/system.install index 030b503c3..ce05973a1 100644 --- a/modules/system/system.install +++ b/modules/system/system.install @@ -3071,24 +3071,6 @@ function system_update_182() { } /** - * Add an index on watchdog type. - */ -function system_update_183() { - $ret = array(); - switch ($GLOBALS['db_type']) { - case 'mysql': - case 'mysqli': - $ret[] = update_sql('ALTER TABLE {watchdog} ADD INDEX (type)'); - break; - case 'pgsql': - $ret[] = update_sql('CREATE INDEX {watchdog}_type_idx ON {watchdog}(type)'); - break; - } - return $ret; -} - - -/** * @defgroup updates-4.7-to-5.0 System updates from 4.7 to 5.0 * @{ */ @@ -3395,6 +3377,24 @@ function system_update_1014() { return array(); } + +/** + * Add an index on watchdog type. + */ +function system_update_1015() { + $ret = array(); + switch ($GLOBALS['db_type']) { + case 'mysql': + case 'mysqli': + $ret[] = update_sql('ALTER TABLE {watchdog} ADD INDEX (type)'); + break; + case 'pgsql': + $ret[] = update_sql('CREATE INDEX {watchdog}_type_idx ON {watchdog}(type)'); + break; + } + return $ret; +} + /** * @} End of "defgroup updates-4.7-to-x.x" */ |