From b4291fdfe9e4f28dc853aa7cd9f6392b535a57c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20K=C3=A1cha?= <ph@cesnet.cz> Date: Wed, 19 Jul 2017 15:48:47 +0200 Subject: [PATCH] The lowest last id client can get ever have is 1 (0 is special), so first event must be 2, otherwise event with id 1 may get lost (thx bodik@cesnet.cz) --- warden3/warden_server/warden_3.0.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/warden3/warden_server/warden_3.0.sql b/warden3/warden_server/warden_3.0.sql index 910e479..9fb8118 100644 --- a/warden3/warden_server/warden_3.0.sql +++ b/warden3/warden_server/warden_3.0.sql @@ -73,7 +73,7 @@ CREATE TABLE IF NOT EXISTS `events` ( PRIMARY KEY (`id`), KEY `id` (`id`,`client_id`), KEY `received` (`received`) - ) ENGINE=InnoDB DEFAULT CHARSET=utf8 DEFAULT COLLATE utf8_unicode_ci AUTO_INCREMENT=1 ; +) ENGINE=InnoDB DEFAULT CHARSET=utf8 DEFAULT COLLATE utf8_unicode_ci AUTO_INCREMENT=2 ; -- -------------------------------------------------------- -- GitLab