- Corrected previous patch. Thanks Robert.
parent
0856457405
commit
4df25c20cb
|
@ -3070,24 +3070,6 @@ function system_update_182() {
|
|||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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"
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue