Closed (fixed)
Project:
Node expire
Version:
5.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 May 2007 at 14:27 UTC
Updated:
28 May 2007 at 08:31 UTC
Hi,
This node looks like something I've been looking for a long time but I am having problems installing it. I keep getting errors along the line of: "user warning: Table 'reserves.node_expire' doesn't exist query:"
I'm running 5.x with PHP 4 and I've checked my database tables and indeed the reserves.node_expiry table doesn't exist. I installed the module as per every other module and as per the README. Am I missing something?
Thanks
Comments
Comment #1
astoltz commentedYour install of Drupal must have something wrong with it. To manually add the table, run the following two SQL commands:
ALTER TABLE node_expire
CHANGE nid nid INT( 10 ) NOT NULL,
ADD expiresec IVARCHAR(10) NOT NULL,
ADD expiremode ENUM( 'date', 'onupdate', 'none' ) NOT NULL DEFAULT 'none',
ADD isroot TINYINT( 1 ) NOT NULL DEFAULT '0',
ADD lastnotify INT( 10 ) NOT NULL DEFAULT '0',
DROP INDEX nid,
ADD PRIMARY KEY (nid);
INSERT IGNORE INTO node_expire (nid, expiremode) (SELECT nid, 'none' FROM node);
Comment #2
astoltz commentedSorry, these are the commands:
CREATE TABLE node_expire (
nid int(10) unsigned NOT NULL,
expire datetime default NULL,
expiresec VARCHAR(10) NOT NULL,
expiremode enum('date','onupdate','none') NOT NULL default 'none',
isroot tinyint(1) NOT NULL default '0',
lastnotify int(10) NOT NULL default '0',
PRIMARY KEY (nid)
) ENGINE=MyISAM;
INSERT IGNORE INTO node_expire (nid, expiremode) (SELECT nid, 'none' FROM node);
Comment #3
pnc999 commentedThanks andyl56
That second set of commands worked perfectly.
Comment #4
astoltz commented