function feed_path_publisher_update_1 in Feed Path Publisher 5
Same name and namespace in other branches
- 6 feed_path_publisher.install \feed_path_publisher_update_1()
File
- ./
feed_path_publisher.install, line 37
Code
function feed_path_publisher_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql('ALTER TABLE {feed_path_publisher} ADD weight INT NOT NULL');
$ret[] = update_sql('ALTER TABLE {feed_path_publisher} DROP INDEX listing, ADD INDEX listing (weight, path_prefix, title)');
break;
case 'pgsql':
drupal_set_message('PostgreSQL is not currently supported.', 'error');
break;
}
return $ret;
}