text: CREATE TABLE `detox_locks` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `item` varchar(512) COLLATE latin1_general_cs NOT NULL,
    `sites` varchar(64) COLLATE latin1_general_cs DEFAULT NULL,
    `groups` varchar(64) COLLATE latin1_general_cs DEFAULT NULL,
    `lock_date` datetime NOT NULL,
    `expiration_date` datetime NOT NULL,
    `user` varchar(64) COLLATE latin1_general_cs NOT NULL,
    `dn` varchar(256) CHARACTER SET latin1 COLLATE latin1_general_cs DEFAULT NULL,
    `service_id` int(10) unsigned NOT NULL DEFAULT '0',
    `comment` mediumtext COLLATE latin1_general_cs,
    PRIMARY KEY (`id`),
    KEY `locked` (`lock_date`),
    KEY `expires` (`expiration_date`),
    KEY `lock_data` (`item`,`sites`,`groups`),
    KEY `user_service` (`user`,`service_id`)
  ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_cs;
  