Skip to content

Commit

Permalink
Minor SQL syntax fixes
Browse files Browse the repository at this point in the history
Fix issues in data.sql and db.sql.

Signed-off-by: Leon Anavi <leon@anavi.org>
  • Loading branch information
leon-anavi committed Feb 16, 2016
1 parent ec35341 commit 4532e80
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql/data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ SET time_zone = "+00:00";
-- Dumping data for table `devices`
--

INSERT INTO `devices` (`device_id`, `device_name`, `device_type_id`) VALUES
INSERT INTO `devices` (`device_id`, `device_name`, `device_type_id`, `device_uid`) VALUES
(1, 'Power switch A', 1, ''),
(2, 'Power switch B', 1, ''),
(3, 'Weather Station', 2, '724cb57fb81b463980ac71543012d9cd');
Expand Down
2 changes: 1 addition & 1 deletion sql/db.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ SET time_zone = "+00:00";
CREATE TABLE IF NOT EXISTS `devices` (
`device_id` int(20) NOT NULL,
`device_name` varchar(100) COLLATE utf8_unicode_ci NOT NULL,
`device_type_id` int(5) NOT NULL
`device_type_id` int(5) NOT NULL,
`device_uid` varchar(32) COLLATE utf8_unicode_ci NOT NULL COMMENT 'unique machine ID'
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

Expand Down

0 comments on commit 4532e80

Please sign in to comment.