function node_expire_update_1 in Node expire 5
Migrate from old HEAD revision to my new version.
File
- ./
node_expire.install, line 44
Code
function node_expire_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {node_expire}\n CHANGE nid nid INT( 10 ) NOT NULL,\n ADD expiresec VARCHAR(10) NOT NULL,\n ADD expiremode ENUM( 'date', 'onupdate', 'none' ) NOT NULL DEFAULT 'none',\n ADD isroot TINYINT( 1 ) NOT NULL DEFAULT '0',\n ADD lastnotify INT( 10 ) NOT NULL DEFAULT '0',\n DROP INDEX nid,\n ADD PRIMARY KEY (nid);");
break;
}
// The old version didn't have the e-mail feature so
// let's disable it by default. The end user can always
// reenable it later.
variable_set('node-expire-enable-email', 0);
return $ret;
}