Skip to content
Snippets Groups Projects
Commit eea92378 authored by Robert Douglass's avatar Robert Douglass
Browse files

making memcache easier to install by clearing the cache completely upon install.

parent d2a3403f
No related branches found
Tags 5.x-1.6
No related merge requests found
......@@ -11,12 +11,14 @@ function memcache_install() {
switch ($GLOBALS['db_type']) {
case 'pgsql':
foreach ($alltables as $table) {
db_query("DELETE FROM $table");
db_add_column($ret, $table, 'serialized', 'integer', array('default' => "'0'", 'not null' => TRUE));
}
break;
case 'mysql':
case 'mysqli':
foreach ($alltables as $table) {
db_query("DELETE FROM $table");
db_query("ALTER TABLE {$table} ADD serialized int(1) NOT NULL default '0'");
}
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment