Forum Moderators: open
CREATE TABLE system (
filename varchar(255) NOT NULL default '',
name varchar(255) NOT NULL default '',
`type` varchar(255) NOT NULL default '',
description varchar(255) NOT NULL default '',
`status` int(2) NOT NULL default '0',
throttle tinyint(1) NOT NULL default '0',
bootstrap int(2) NOT NULL default '0',
PRIMARY KEY (filename)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
INSERT INTO system VALUES ('modules/gallery/gallery.module', 'gallery', 'module', 'Integration with Gallery2 (http://gallery.menalto.com/)', 1, 1, 0); The error comes with the 'filename' ....the key...is duplicated.
ie:
('modules/gallery/gallery.module', How do I structure the query to turn the status to off without duplicating the filename, which is the key?