forked from Chielus/InfoScreen
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathjobtabs.sql
57 lines (46 loc) · 1.52 KB
/
jobtabs.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
-- phpMyAdmin SQL Dump
-- version 3.4.5deb1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 17, 2012 at 06:59 PM
-- Server version: 5.1.61
-- PHP Version: 5.3.6-13ubuntu3.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `flatturtle`
--
-- --------------------------------------------------------
--
-- Table structure for table `jobs`
--
CREATE TABLE IF NOT EXISTS `jobs` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`jobname` varchar(30) NOT NULL,
`javascript` varchar(1000) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=4 ;
--
-- Dumping data for table `jobs`
--
INSERT INTO `jobs` (`id`, `jobname`, `javascript`) VALUES
(1, 'screen_on', 'try{application.enableScreen(true);}catch(err){}window.location = $("base").attr("href") + infoScreen.alias; '),
(2, 'screen_off', 'try{application.enableScreen(false);}catch(err){}window.location = $("base").attr("href") + infoScreen.alias + "/sleep/";');
-- --------------------------------------------------------
--
-- Table structure for table `jobtab`
--
CREATE TABLE IF NOT EXISTS `jobtab` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`infoscreen_id` int(11) NOT NULL,
`job_id` int(11) NOT NULL,
`minutes` varchar(50) NOT NULL,
`hours` varchar(50) NOT NULL,
`day_of_month` varchar(50) NOT NULL,
`month` varchar(50) NOT NULL,
`day_of_week` varchar(50) NOT NULL,
PRIMARY KEY (`id`),
KEY `infoscreen_id` (`infoscreen_id`),
KEY `job_id` (`job_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;