TRUE, 'default' => "''")); break; case 'mysql': case 'mysqli': $ret[] = update_sql("ALTER TABLE {variable} CHANGE name name varchar(128) NOT NULL default ''"); break; } return $ret; } /** * Delete the pathauto_node_supportsfeeds. */ function pathauto_update_3() { // Do nothing, this update was a mistake return array(); } /** * New style naming for the punctuation chars. */ function pathauto_update_4() { variable_set('pathauto_punctuation_quotes', variable_get('pathauto_quotes', 0)); variable_del('pathauto_quotes'); return array(); } /** * Create a table so that we can track which items we keep * And eventually to improve join performance */ function pathauto_update_5() { // Note: no longer done...see http://drupal.org/node/248031 return array(); } /** * Remove some variables that are no longer used. */ function pathauto_update_6() { $ret = array(); // Delete some unused variables $ret[] = update_sql("DELETE FROM {variable} WHERE name LIKE 'pathauto_%_supportsfeeds'"); cache_clear_all('variables', 'cache'); return $ret; } /** * Remove the url_alias_extra table which wasn't used. */ function pathauto_update_7() { $ret = array(); if (db_table_exists('url_alias_extra')) { $ret[] = update_sql('DROP TABLE {url_alias_extra}'); } return $ret; }