fixes connection logging to DB not working

This commit is contained in:
Kyep
2019-12-16 15:55:04 -08:00
parent fe53a5acf9
commit a4e6dba738
4 changed files with 39 additions and 3 deletions
+10
View File
@@ -9,3 +9,13 @@ CREATE TABLE `playtime_history` (
PRIMARY KEY (`ckey`, `date`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
# Add the 'connection_log' table, which is used to log all connections to the server
DROP TABLE IF EXISTS `connection_log`;
CREATE TABLE `connection_log` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`datetime` datetime NOT NULL,
`ckey` varchar(32) NOT NULL,
`ip` varchar(32) NOT NULL,
`computerid` varchar(32) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;