Skip to content

Commit

Permalink
Now matches the php description. Also includes test table
Browse files Browse the repository at this point in the history
  • Loading branch information
pjb304 committed Mar 5, 2015
1 parent 19cdc71 commit fcddaa0
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions database/unprocessed_data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Aug 10, 2014 at 10:09 AM
-- Generation Time: Mar 05, 2015 at 03:21 PM
-- Server version: 5.1.73
-- PHP Version: 5.3.2-1ubuntu4.26
-- PHP Version: 5.3.2-1ubuntu4.28

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

Expand All @@ -21,13 +21,36 @@ SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

-- --------------------------------------------------------

--
-- Table structure for table `test_unprocessed_data`
--

CREATE TABLE IF NOT EXISTS `test_unprocessed_data` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`device_id` char(4) NOT NULL,
`timestamp` datetime NOT NULL,
`data` blob NOT NULL,
`unpacked` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `device_id` (`device_id`),
KEY `timestamp` (`timestamp`),
KEY `unpacked` (`unpacked`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=40020 ;

-- --------------------------------------------------------

--
-- Table structure for table `unprocessed_data`
--

CREATE TABLE IF NOT EXISTS `unprocessed_data` (
`ID` char(4) NOT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
`device_id` char(4) NOT NULL,
`timestamp` datetime NOT NULL,
`data` blob NOT NULL,
PRIMARY KEY (`ID`,`timestamp`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
`unpacked` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `device_id` (`device_id`),
KEY `timestamp` (`timestamp`),
KEY `unpacked` (`unpacked`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=28083 ;

0 comments on commit fcddaa0

Please sign in to comment.