SQL update: track playtime per player per day for stats

This commit is contained in:
Kyep
2019-12-15 16:48:16 -08:00
parent db82363bfb
commit 7acb902388
6 changed files with 54 additions and 4 deletions
+11
View File
@@ -0,0 +1,11 @@
# Updating SQL from ver 9 to 10 - Kyet
# Add the 'playtime_history' table that tracks playtime per player per day
CREATE TABLE `playtime_history` (
`ckey` varchar(32) NOT NULL,
`date` DATE NOT NULL,
`time_living` SMALLINT NOT NULL,
`time_ghost` SMALLINT NOT NULL,
PRIMARY KEY (`ckey`, `date`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;