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