-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdb.sql
More file actions
47 lines (39 loc) · 1.87 KB
/
Copy pathdb.sql
File metadata and controls
47 lines (39 loc) · 1.87 KB
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
-- --------------------------------------------------------
-- Host: 127.0.0.1
-- Server version: 5.6.11 - MySQL Community Server (GPL)
-- Server OS: Win32
-- HeidiSQL Version: 9.2.0.4947
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8mb4 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
-- Dumping database structure for weather
CREATE DATABASE IF NOT EXISTS `weather` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `weather`;
-- Dumping structure for table weather.balloon
DROP TABLE IF EXISTS `balloon`;
CREATE TABLE IF NOT EXISTS `balloon` (
`flight_number` int(6) unsigned NOT NULL,
`launch_location` varchar(50) NOT NULL,
`launch_technician` varchar(50) NOT NULL,
`recovered` tinyint(1) unsigned NOT NULL,
PRIMARY KEY (`flight_number`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-- Data exporting was unselected.
-- Dumping structure for table weather.reading
DROP TABLE IF EXISTS `reading`;
CREATE TABLE IF NOT EXISTS `reading` (
`id` int(10) NOT NULL AUTO_INCREMENT,
`flight` int(6) unsigned NOT NULL DEFAULT '0',
`time` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`altitude` int(5) unsigned NOT NULL DEFAULT '0',
`temperature` float NOT NULL DEFAULT '0',
`barometric_pressure` int(6) unsigned NOT NULL DEFAULT '0',
`humidity` float unsigned NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
-- Data exporting was unselected.
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;