Default value of 'count' needs to be 1
authorRoland Haeder <roland@mxchange.org>
Fri, 26 Nov 2010 15:30:03 +0000 (15:30 +0000)
committerRoland Haeder <roland@mxchange.org>
Fri, 26 Nov 2010 15:30:03 +0000 (15:30 +0000)
install/install.sql

index 73b30c48b4072b9e473fb3e1358ddd48d08e0b6a..b8923836a787025ed76afa7dc866b2e0a687dc69 100644 (file)
@@ -13,7 +13,7 @@ CREATE TABLE IF NOT EXISTS `ctracker_data` (
        `proxy_used` enum('Y','N') NOT NULL DEFAULT 'N' COMMENT 'Proxy used?',
        `first_attempt` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00' COMMENT 'First attempt',
        `last_attempt` TIMESTAMP ON UPDATE CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Last attempt',
-       `count` bigint(20) unsigned NOT NULL DEFAULT '0' COMMENT 'Counter',
+       `count` bigint(20) unsigned NOT NULL DEFAULT '1' COMMENT 'Counter',
        PRIMARY KEY (`id`),
        KEY `remote_addr` (`remote_addr`)
 ) TYPE=InnoDB COMMENT='Gathered data of attack';