From 3df0308700353bd184a528611698019d2842c19d Mon Sep 17 00:00:00 2001 From: unixweb Date: Fri, 8 May 2015 23:19:47 +0200 Subject: [PATCH] SQL New SQL-Design --- createTable.sql | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/createTable.sql b/createTable.sql index cbc1ba4..a9393c2 100644 --- a/createTable.sql +++ b/createTable.sql @@ -1,8 +1,14 @@ CREATE TABLE IF NOT EXISTS `temperatures` ( `id` int(255) NOT NULL AUTO_INCREMENT, - `temperature` double NOT NULL, `humidity` varchar(20) NOT NULL, `dateMeasured` date NOT NULL, `hourMeasured` int(128) NOT NULL, + `temperature-1` double NOT NULL, + `temperature-2` double NOT NULL, + `temperature-3` double NOT NULL, + `temperature-4` double NOT NULL, + `pressure` varchar(20) COLLATE utf8_unicode_ci NOT NULL, + `pressure-sea` varchar(20) COLLATE utf8_unicode_ci NOT NULL, + `altitude` varchar(20) COLLATE utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;