1 CREATE DATABASE IF NOT EXISTS `meteo` /*!40100 DEFAULT CHARACTER SET utf8 */;
3 -- MySQL dump 10.13 Distrib 5.5.35, for debian-linux-gnu (i686)
5 -- Host: estia Database: meteo
6 -- ------------------------------------------------------
7 -- Server version 5.5.35-0ubuntu0.13.10.2
9 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
10 /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
11 /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
12 /*!40101 SET NAMES utf8 */;
13 /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
14 /*!40103 SET TIME_ZONE='+00:00' */;
15 /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
16 /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
17 /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
18 /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
21 -- Table structure for table `units`
24 DROP TABLE IF EXISTS `units`;
25 /*!40101 SET @saved_cs_client = @@character_set_client */;
26 /*!40101 SET character_set_client = utf8 */;
27 CREATE TABLE `units` (
28 `id` int(11) NOT NULL AUTO_INCREMENT,
29 `name` varchar(32) CHARACTER SET utf8 NOT NULL,
30 `name_short` varchar(8) CHARACTER SET utf8 NOT NULL,
31 `unit_group` int(11) NOT NULL,
33 KEY `fk_units_group_idx` (`unit_group`),
34 CONSTRAINT `fk_units_group` FOREIGN KEY (`unit_group`) REFERENCES `unit_groups` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
35 ) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=latin1;
36 /*!40101 SET character_set_client = @saved_cs_client */;
39 -- Dumping data for table `units`
42 LOCK TABLES `units` WRITE;
43 /*!40000 ALTER TABLE `units` DISABLE KEYS */;
44 INSERT INTO `units` VALUES (1,'Градусы Цельсия','C',1),(2,'Проценты','%',2),(3,'Паскали','Па',3),(4,'Градусы Фаренгейта','F',1),(5,'Миллиметры ртутного столба','мм',3),(6,'Миллибары','мбар',3),(7,'Дюймы ртутного столба','inHg',3);
45 /*!40000 ALTER TABLE `units` ENABLE KEYS */;
47 /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
49 /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
50 /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
51 /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
52 /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
53 /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
54 /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
55 /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
57 -- Dump completed on 2014-03-17 20:31:43