You are here

function memcache_uninstall in Memcache API and Integration 5

Same name and namespace in other branches
  1. 5.2 memcache.install \memcache_uninstall()

Remove serialized field from cache tables

File

./memcache.install, line 30

Code

function memcache_uninstall() {
  $core = array(
    'cache',
    'cache_filter',
    'cache_menu',
    'cache_page',
  );
  $alltables = array_merge($core, module_invoke_all('devel_caches'));
  switch ($GLOBALS['db_type']) {
    case 'pgsql':
    case 'mysql':
    case 'mysqli':
      foreach ($alltables as $table) {
        db_query("ALTER TABLE {{$table}} DROP serialized");
      }
      break;
  }
}