From ccfa4b02bef61e4507a1bc6a4bdfb5d608478dc2 Mon Sep 17 00:00:00 2001 From: Bigard Florian Date: Thu, 20 Jul 2017 13:41:12 +0200 Subject: [PATCH] Fix log table creation Fixes https://github.com/Chocobozzz/OpenVPN-Admin/issues/60 --- sql/schema-0.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/schema-0.sql b/sql/schema-0.sql index d64aae5..81258e5 100644 --- a/sql/schema-0.sql +++ b/sql/schema-0.sql @@ -14,7 +14,7 @@ CREATE TABLE IF NOT EXISTS `log` ( `log_remote_ip` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL, `log_remote_port` varchar(16) COLLATE utf8_unicode_ci DEFAULT NULL, `log_start_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - `log_end_time` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + `log_end_time` timestamp NOT NULL DEFAULT NULL, `log_received` float NOT NULL DEFAULT '0', `log_send` float NOT NULL DEFAULT '0', PRIMARY KEY (`log_id`),