3
"appVersion": "1.8.0-beta",
6
"step": "Add the WidgetId to the Stat Table",
7
"action": "ALTER TABLE `stat` ADD widgetId INT NULL;"
10
"step": "Display Event Table",
11
"action": "CREATE TABLE IF NOT EXISTS `displayevent` (`displayEventId` bigint(20) NOT NULL AUTO_INCREMENT,`eventDate` int(11) NOT NULL,`displayId` int(4) NOT NULL,`start` INT(11) NOT NULL,`end` INT(11) DEFAULT NULL,PRIMARY KEY (`displayEventId`),KEY `eventDate` (`eventDate`),KEY `displayId` (`displayID`,`end`)) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;"
14
"step": "Insert old Display down events into new table",
15
"action": "INSERT INTO displayevent (eventDate, displayId, start, end) SELECT UNIX_TIMESTAMP(statDate), displayID, UNIX_TIMESTAMP(start), UNIX_TIMESTAMP(end) FROM stat WHERE Type = 'displaydown';"
18
"step": "Remove old stat records",
19
"action": "DELETE FROM stat WHERE Type = 'displaydown';"
b'\\ No newline at end of file'