X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2Fopenvim.git;a=blobdiff_plain;f=database_utils%2Fvim_db_structure.sql;h=d6b7cb7f537e54b153c7fc38ad7aafb633707681;hp=342c20c6dc4968e80b3b1c152668fd0ea3f90ec1;hb=6714bc31b0ecf2bf801e75e23eb72254e3d18d78;hpb=9cead2a0262deabadc900d580ef312fbc468efc0 diff --git a/database_utils/vim_db_structure.sql b/database_utils/vim_db_structure.sql index 342c20c..d6b7cb7 100644 --- a/database_utils/vim_db_structure.sql +++ b/database_utils/vim_db_structure.sql @@ -19,11 +19,11 @@ * contact with: nfvlabs@tid.es **/ --- MySQL dump 10.13 Distrib 5.7.20, for Linux (x86_64) +-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) -- -- Host: localhost Database: {{vim_db}} -- ------------------------------------------------------ --- Server version 5.7.20-0ubuntu0.16.04.1 +-- Server version 5.7.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; @@ -102,6 +102,7 @@ CREATE TABLE `hosts` ( `ranking` smallint(6) NOT NULL DEFAULT '0', `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `features` varchar(255) DEFAULT NULL, + `hypervisors` varchar(255) NOT NULL DEFAULT 'kvm', `user` varchar(64) NOT NULL, `password` varchar(64) DEFAULT NULL, `keyfile` varchar(255) DEFAULT NULL, @@ -171,6 +172,8 @@ DROP TABLE IF EXISTS `instances`; CREATE TABLE `instances` ( `uuid` varchar(36) NOT NULL, `flavor_id` varchar(36) NOT NULL, + `hypervisor` enum('kvm','xen-unik','xenhvm') NOT NULL DEFAULT 'kvm', + `os_image_type` varchar(24) NOT NULL DEFAULT 'other', `image_id` varchar(36) NOT NULL, `name` varchar(64) NOT NULL, `description` varchar(255) DEFAULT NULL, @@ -984,17 +987,14 @@ DELIMITER ; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2017-11-23 10:32:25 +-- Dump completed on 2018-12-10 14:58:11 - - - --- MySQL dump 10.13 Distrib 5.7.20, for Linux (x86_64) +-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64) -- -- Host: localhost Database: {{vim_db}} -- ------------------------------------------------------ --- Server version 5.7.20-0ubuntu0.16.04.1 +-- Server version 5.7.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; @@ -1013,7 +1013,31 @@ DELIMITER ; LOCK TABLES `schema_version` WRITE; /*!40000 ALTER TABLE `schema_version` DISABLE KEYS */; -INSERT INTO `schema_version` VALUES (1,'0.1','0.2.00','insert schema_version; alter nets with last_error column','2015-05-05'),(2,'0.2','0.2.03','update Procedure UpdateSwitchPort','2015-05-06'),(3,'0.3','0.2.5','New Procedure GetAllAvailablePorts','2015-07-09'),(4,'0.4','0.3.1','Remove unique index VLAN at resources_port','2015-09-04'),(5,'0.5','0.4.1','Add ip_address to ports','2015-09-04'),(6,'0.6','0.4.2','Enlarging name at database','2016-02-01'),(7,'0.7','0.4.4','Add bind_net to net table','2016-02-12'),(8,'0.8','0.4.10','add column checksum to images','2016-09-30'),(9,'0.9','0.5.1','increase length of columns path and name to 255 in table images, and change length of column name to 255 in table flavors','2017-01-10'),(10,'0.10','0.5.2','change ports type, adding instance:ovs','2017-02-01'),(11,'0.11','0.5.4','Add gateway_ip colum to nets','2017-02-13'),(12,'0.12','0.5.5','Add of_controller table','2017-02-17'),(13,'0.13','0.5.6','Add of_port_mapings table','2017-03-09'),(14,'0.14','0.5.7','Add switch_mac, ofc_id colum to ports and resources_port tables','2017-03-09'),(15,'0.15','0.5.8','Add ofc_id colum to of_flows','2017-03-15'),(16,'0.16','0.5.9','Add last_error and status colum to ofcs','2017-03-17'),(17,'0.17','0.5.10','Add pci to unique index dpid port/mac at of_port_mappings','2017-04-05'),(18,'0.18','0.5.13','Add region to nets, change vlan unique index','2017-05-03'),(19,'0.19','0.5.15','Add keyfile to hosts','2017-05-23'),(20,'0.20','0.5.17','Add image_size to instance_devices','2017-06-01'),(21,'0.21','0.5.18','Add routes, links and dns to inets','2017-06-21'),(22,'0.22','0.5.21','Changed type of ram in flavors from SMALLINT to MEDIUMINT','2017-11-14'); +INSERT INTO `schema_version` VALUES +(0,'0.0','0.0.0','Database in init process','2015-05-05'), +(1,'0.1','0.2.00','insert schema_version; alter nets with last_error column','2015-05-05'), +(2,'0.2','0.2.03','update Procedure UpdateSwitchPort','2015-05-06'), +(3,'0.3','0.2.5','New Procedure GetAllAvailablePorts','2015-07-09'), +(4,'0.4','0.3.1','Remove unique index VLAN at resources_port','2015-09-04'), +(5,'0.5','0.4.1','Add ip_address to ports','2015-09-04'), +(6,'0.6','0.4.2','Enlarging name at database','2016-02-01'), +(7,'0.7','0.4.4','Add bind_net to net table','2016-02-12'), +(8,'0.8','0.4.10','add column checksum to images','2016-09-30'), +(9,'0.9','0.5.1','increase length of columns path and name to 255 in table images, and change length of column name to 255 in table flavors','2017-01-10'), +(10,'0.10','0.5.2','change ports type, adding instance:ovs','2017-02-01'), +(11,'0.11','0.5.4','Add gateway_ip colum to nets','2017-02-13'), +(12,'0.12','0.5.5','Add of_controller table','2017-02-17'), +(13,'0.13','0.5.6','Add of_port_mapings table','2017-03-09'), +(14,'0.14','0.5.7','Add switch_mac, ofc_id colum to ports and resources_port tables','2017-03-09'), +(15,'0.15','0.5.8','Add ofc_id colum to of_flows','2017-03-15'), +(16,'0.16','0.5.9','Add last_error and status colum to ofcs','2017-03-17'), +(17,'0.17','0.5.10','Add pci to unique index dpid port/mac at of_port_mappings','2017-04-05'), +(18,'0.18','0.5.13','Add region to nets, change vlan unique index','2017-05-03'), +(19,'0.19','0.5.15','Add keyfile to hosts','2017-05-23'), +(20,'0.20','0.5.17','Add image_size to instance_devices','2017-06-01'), +(21,'0.21','0.5.18','Add routes, links and dns to inets','2017-06-21'), +(22,'0.22','0.5.21','Changed type of ram in flavors from SMALLINT to MEDIUMINT','2017-11-14'), +(23,'0.23','0.5.24','Add hypervisor, os_type to instances and add hypervisors to hosts','2018-03-20'); /*!40000 ALTER TABLE `schema_version` ENABLE KEYS */; UNLOCK TABLES; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */; @@ -1026,4 +1050,5 @@ UNLOCK TABLES; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; --- Dump completed on 2017-11-23 10:32:25 +-- Dump completed on 2018-12-10 14:58:11 +