~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to install/steps/126.json

  • Committer: Dan Garner
  • Date: 2015-03-26 14:08:33 UTC
  • Revision ID: git-v1:70d14044444f8dc5d602b99890d59dea46d9470c
Moved web servable files to web folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{
2
 
  "dbVersion": 126,
3
 
  "appVersion": "1.8.0-beta",
4
 
  "steps": [
5
 
    {
6
 
      "step": "Add the WidgetId to the Stat Table",
7
 
      "action": "ALTER TABLE `stat` ADD widgetId INT NULL;"
8
 
    },
9
 
    {
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 ;"
12
 
    },
13
 
    {
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';"
16
 
    },
17
 
    {
18
 
      "step": "Remove old stat records",
19
 
      "action": "DELETE FROM stat WHERE Type = 'displaydown';"
20
 
    }
21
 
  ]
22
 
}
 
 
b'\\ No newline at end of file'