Fix log table creation
Fixes https://github.com/Chocobozzz/OpenVPN-Admin/issues/60
This commit is contained in:
parent
52ae4db4e1
commit
ccfa4b02be
@ -14,7 +14,7 @@ CREATE TABLE IF NOT EXISTS `log` (
|
|||||||
`log_remote_ip` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
|
`log_remote_ip` varchar(32) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||||
`log_remote_port` varchar(16) 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_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_received` float NOT NULL DEFAULT '0',
|
||||||
`log_send` float NOT NULL DEFAULT '0',
|
`log_send` float NOT NULL DEFAULT '0',
|
||||||
PRIMARY KEY (`log_id`),
|
PRIMARY KEY (`log_id`),
|
||||||
|
Loading…
Reference in New Issue
Block a user