DROP PRIMARY KEY,
DROP COLUMN ip,
CHANGE COLUMN ip2 ip INT(11) UNSIGNED NOT NULL,
-ADD COLUMN mask uint(11) NOT NULL DEFAULT 4294967295,
+ADD COLUMN mask int(11) unsigned NOT NULL DEFAULT 4294967295,
ADD PRIMARY KEY ip (ip),
ADD INDEX network (ip, mask);
-CREATE TABLE `forums.innd` (
+USE forums;
+
+CREATE TABLE IF NOT EXISTS `innd` (
`id_innd` int(10) unsigned NOT NULL auto_increment,
`ipmin` int(10) unsigned default '0' COMMENT 'ip_address',
`ipmax` int(10) unsigned default '4294967295' COMMENT 'ip_address',
PRIMARY KEY (`id_innd`)
) DEFAULT CHARSET=utf8;
-INSERT INTO `forums.innd` VALUES (1,0,4294967295,NULL,'xorg.*,!xorg.prive.*','xorg.*,!xorg.prive.*,!xorg.pa.emploi',0,'par defaut pour tous');
+INSERT INTO `innd` VALUES (1,0,4294967295,NULL,'xorg.*,!xorg.prive.*','xorg.*,!xorg.prive.*,!xorg.pa.emploi',0,'par defaut pour tous');
VALUES ('view_profile', 'Consultation d\'une fiche'),
('search', 'RĂ©alisation d\'une recherche');
-user logger;
+use logger;
ALTER TABLE events ADD INDEX action (action);
-user x4dat;
+use x4dat;
# vim:set syntax=mysql: