Update sql fixture data to new schema

This commit is contained in:
Jan Eitzinger 2021-08-20 12:02:37 +02:00
parent 4bb6684426
commit 8e8541b401
2 changed files with 103 additions and 4965 deletions

View File

@ -41,7 +41,7 @@ CREATE TABLE `configuration` (
LOCK TABLES `configuration` WRITE;
/*!40000 ALTER TABLE `configuration` DISABLE KEYS */;
INSERT INTO `configuration` VALUES (1,'plot_view_showRoofline','true','default','Show roofline plot','true|false',NULL,'Enter true or false'),(2,'plot_view_showPolarplot','true','default','Show polar plot','true|false',NULL,'Enter true or false'),(3,'plot_view_showStatTable','true','default','Show stat table','true|false',NULL,'Enter true or false'),(4,'plot_view_plotsPerRow','3','default','Plots per row in job view','[0-9]+',NULL,'Enter a positive integer'),(5,'plot_list_samples','120','default','Sample points for downsampled plots','[0-9]+',NULL,'Enter a positive integer'),(6,'plot_list_sortColumn','1','default','Default sort column','[0-9]+',NULL,'Enter a positive integer'),(7,'plot_list_sortDirection','desc','default','Default sort direction','asc|desc',NULL,'Enter asc or desc'),(8,'plot_general_colorscheme','Accent','default','Plot color scheme','',NULL,''),(9,'plot_general_interactive','false','default','Interactive plots in job view','true|false',NULL,'Enter true or false'),(10,'plot_general_lineWidth','1','default','Line width for plots','[0-9]+',NULL,'Enter a positive integer'),(11,'plot_general_colorBackground','true','default','Color plot background','true|false',NULL,'Enter true or false'),(12,'data_time_digits','2','default','Timestamp rounding digits','[0-9]+',NULL,'Enter a positive integer'),(13,'data_metric_digits','1','default','Metric rounding digits','[0-9]+',NULL,'Enter a positive integer'),(14,'data_cache_period','40','default','Cache grace time','[0-9]+',NULL,'Enter a positive integer'),(15,'data_cache_numpoints','40','default','Cache build threshold','[0-9]+',NULL,'Enter a positive integer'),(16,'ldap_connection_url','','default','Connection URL','',NULL,''),(17,'ldap_user_base','','default','Base DN users','',NULL,''),(18,'ldap_user_key','','default','Key user id','',NULL,''),(19,'ldap_search_dn','','default','Search DN','',NULL,''),(20,'ldap_user_filter','','default','User query filter','',NULL,''),(21,'general_user_scramble','false','default','Anonymize user names','',NULL,''),(22,'general_user_emailbase','@mail.de','default','Email base adress used in user imports','',NULL,''),(23,'plot_list_selectedMetrics','[\"cpu_load\",\"flops_any\",\"mem_bw\",\"mem_used\"]','default','Metrics to show in job list','',NULL,'Enter a JSON list'),(24,'plot_list_selectedMetrics','[\"cpu_load\",\"flops_any\",\"mem_bw\",\"mem_used\"]','admin','Metrics to show in job list','',NULL,'Enter a JSON list'),(25,'analysis_view_histogramMetrics','[\"cpu_load\",\"mem_used\",\"flops_any\",\"mem_bw\",\"cpi\",\"clock\"]','admin','Metrics to show in histograms in analysis view','',NULL,'Enter a JSON list'),(30,'job_view_nodestats_selectedMetrics','[\"flops_any\",\"mem_bw\",\"mem_used\",\"cpu_load\",\"clock\"]','admin','Metrics to show in stats table in job view','',NULL,'Enter a JSON list'),(31,'job_view_selectedMetrics','[\"flops_any\",\"mem_bw\",\"mem_used\",\"cpu_load\",\"cpi\",\"clock\"]','admin','Metrics to show as plots in job view','',NULL,'Enter a JSON list'),(32,'analysis_view_scatterPlotMetrics','[[\"flops_any\",\"mem_bw\"],[\"flops_any\",\"cpu_load\"],[\"mem_bw\",\"cpu_load\"]]','admin','Metrics to show in scatter plots in analysis view','',NULL,'Enter a JSON list of metric pairs');
INSERT INTO `configuration` VALUES (1,'plot_view_showRoofline','true','default','Show roofline plot','true|false',NULL,'Enter true or false'),(2,'plot_view_showPolarplot','true','default','Show polar plot','true|false',NULL,'Enter true or false'),(3,'plot_view_showStatTable','true','default','Show stat table','true|false',NULL,'Enter true or false'),(4,'plot_view_plotsPerRow','3','default','Plots per row in job view','[0-9]+',NULL,'Enter a positive integer'),(8,'plot_general_colorscheme','Accent','default','Plot color scheme','',NULL,''),(9,'plot_general_interactive','false','default','Interactive plots in job view','true|false',NULL,'Enter true or false'),(10,'plot_general_lineWidth','1','default','Line width for plots','[0-9]+',NULL,'Enter a positive integer'),(11,'plot_general_colorBackground','true','default','Color plot background','true|false',NULL,'Enter true or false'),(21,'general_user_scramble','false','default','Anonymize user names','',NULL,''),(22,'general_user_emailbase','@mail.de','default','Email base adress used in user imports','',NULL,''),(23,'plot_list_selectedMetrics','[\"cpu_load\",\"flops_any\",\"mem_bw\",\"mem_used\"]','default','Metrics to show in job list','',NULL,'Enter a JSON list'),(24,'plot_list_selectedMetrics','[\"cpu_load\",\"flops_any\",\"mem_bw\",\"mem_used\"]','admin','Metrics to show in job list','',NULL,'Enter a JSON list'),(25,'analysis_view_histogramMetrics','[\"cpu_load\",\"mem_used\",\"flops_any\",\"mem_bw\",\"cpi\",\"clock\"]','admin','Metrics to show in histograms in analysis view','',NULL,'Enter a JSON list'),(30,'job_view_nodestats_selectedMetrics','[\"flops_any\",\"mem_bw\",\"mem_used\",\"cpu_load\",\"clock\"]','admin','Metrics to show in stats table in job view','',NULL,'Enter a JSON list'),(31,'job_view_selectedMetrics','[\"flops_any\",\"mem_bw\",\"mem_used\",\"cpu_load\",\"cpi\",\"clock\",\"rapl_power\"]','admin','Metrics to show as plots in job view','',NULL,'Enter a JSON list'),(32,'analysis_view_scatterPlotMetrics','[[\"flops_any\",\"mem_bw\"],[\"flops_any\",\"cpu_load\"],[\"mem_bw\",\"cpu_load\"]]','admin','Metrics to show in scatter plots in analysis view','',NULL,'Enter a JSON list of metric pairs');
/*!40000 ALTER TABLE `configuration` ENABLE KEYS */;
UNLOCK TABLES;
@ -147,10 +147,10 @@ DROP TABLE IF EXISTS `user`;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `user` (
`username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`password` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`roles` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT '(DC2Type:array)',
`email` varchar(254) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`roles` json DEFAULT NULL,
`email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`is_active` tinyint(1) DEFAULT NULL,
`api_token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
PRIMARY KEY (`username`),
@ -164,7 +164,7 @@ CREATE TABLE `user` (
LOCK TABLES `user` WRITE;
/*!40000 ALTER TABLE `user` DISABLE KEYS */;
INSERT INTO `user` VALUES ('admin','$2y$13$bCJ.cWhE1MIaI.dg9jr/V.73inKd/U7ZBD0WpF5JMTomkfXuRkpRu','Local account','a:3:{i:0;s:9:\"ROLE_USER\";i:1;s:12:\"ROLE_ANALYST\";i:2;s:10:\"ROLE_ADMIN\";}','admin@ccdemo.de',1,'9c6e3e647e84b87730815325aa8c7dff35deeada'),('demoUser','$2y$13$wZDSqfjEHOSBEW2cV7CsQuHZtd6qVKIfYxlZmGuQI7jPVqGOzYGuG','Demo User','a:2:{i:0;s:8:\"ROLE_API\";i:1;s:9:\"ROLE_USER\";}',NULL,0,'863ae06090602cbaef2d66b69d706953e50561b6'),('emmyUser1',NULL,'Emmy User1',NULL,NULL,NULL,NULL),('emmyUser10',NULL,'Emmy User10',NULL,NULL,NULL,NULL),('emmyUser2',NULL,'Emmy User2',NULL,NULL,NULL,NULL),('emmyUser3',NULL,'Emmy User3',NULL,NULL,NULL,NULL),('emmyUser4',NULL,'Emmy User4',NULL,NULL,NULL,NULL),('emmyUser5',NULL,'Emmy User5',NULL,NULL,NULL,NULL),('emmyUser6',NULL,'Emmy User6',NULL,NULL,NULL,NULL),('emmyUser7',NULL,'Emmy User7',NULL,NULL,NULL,NULL),('emmyUser8',NULL,'Emmy User8',NULL,NULL,NULL,NULL),('emmyUser9',NULL,'Emmy User9',NULL,NULL,NULL,NULL),('woodyUser1',NULL,'Woody User1',NULL,NULL,NULL,NULL),('woodyUser2',NULL,'Woody User2',NULL,NULL,NULL,NULL),('woodyUser3',NULL,'Woody User3',NULL,NULL,NULL,NULL),('woodyUser4',NULL,'Woody User4',NULL,NULL,NULL,NULL),('woodyUser5',NULL,'Woody User5',NULL,NULL,NULL,NULL);
INSERT INTO `user` VALUES ('admin','$2y$13$oaRyvkkCZYjL/iNsztqLjeQ36QhDQPXpYYmzTB6TBa3hNho9.56qS','Local account','[\"ROLE_ADMIN\", \"ROLE_ANALYST\", \"ROLE_USER\"]','admin@ccdemo.de',1,'9c6e3e647e84b87730815325aa8c7dff35deeada'),('demoUser','$argon2id$v=19$m=65536,t=4,p=1$q6zUmLqJ0b1CNZFnoIHtEQ$ykN/6rMR5s3Ex/hrpC1jJ5JMXYN7rlAmwNrZNtrGAyo','Demo User','[\"ROLE_API\"]',NULL,1,'863ae06090602cbaef2d66b69d706953e50561b6'),('emmyUser1',NULL,'Emmy User1',NULL,NULL,NULL,NULL),('emmyUser10',NULL,'Emmy User10',NULL,NULL,NULL,NULL),('emmyUser2',NULL,'Emmy User2',NULL,NULL,NULL,NULL),('emmyUser3',NULL,'Emmy User3',NULL,NULL,NULL,NULL),('emmyUser4',NULL,'Emmy User4',NULL,NULL,NULL,NULL),('emmyUser5',NULL,'Emmy User5',NULL,NULL,NULL,NULL),('emmyUser6',NULL,'Emmy User6',NULL,NULL,NULL,NULL),('emmyUser7',NULL,'Emmy User7',NULL,NULL,NULL,NULL),('emmyUser8',NULL,'Emmy User8',NULL,NULL,NULL,NULL),('emmyUser9',NULL,'Emmy User9',NULL,NULL,NULL,NULL),('influxUser1',NULL,'Influx User1',NULL,NULL,NULL,NULL),('influxUser10',NULL,'Influx User10',NULL,NULL,NULL,NULL),('influxUser11',NULL,'Influx User11',NULL,NULL,NULL,NULL),('influxUser12',NULL,'Influx User12',NULL,NULL,NULL,NULL),('influxUser13',NULL,'Influx User13',NULL,NULL,NULL,NULL),('influxUser14',NULL,'Influx User14',NULL,NULL,NULL,NULL),('influxUser15',NULL,'Influx User15',NULL,NULL,NULL,NULL),('influxUser16',NULL,'Influx User16',NULL,NULL,NULL,NULL),('influxUser17',NULL,'Influx User17',NULL,NULL,NULL,NULL),('influxUser18',NULL,'Influx User18',NULL,NULL,NULL,NULL),('influxUser19',NULL,'Influx User19',NULL,NULL,NULL,NULL),('influxUser2',NULL,'Influx User2',NULL,NULL,NULL,NULL),('influxUser20',NULL,'Influx User20',NULL,NULL,NULL,NULL),('influxUser21',NULL,'Influx User21',NULL,NULL,NULL,NULL),('influxUser22',NULL,'Influx User22',NULL,NULL,NULL,NULL),('influxUser23',NULL,'Influx User23',NULL,NULL,NULL,NULL),('influxUser24',NULL,'Influx User24',NULL,NULL,NULL,NULL),('influxUser25',NULL,'Influx User25',NULL,NULL,NULL,NULL),('influxUser26',NULL,'Influx User26',NULL,NULL,NULL,NULL),('influxUser27',NULL,'Influx User27',NULL,NULL,NULL,NULL),('influxUser28',NULL,'Influx User28',NULL,NULL,NULL,NULL),('influxUser29',NULL,'Influx User29',NULL,NULL,NULL,NULL),('influxUser3',NULL,'Influx User3',NULL,NULL,NULL,NULL),('influxUser30',NULL,'Influx User30',NULL,NULL,NULL,NULL),('influxUser31',NULL,'Influx User31',NULL,NULL,NULL,NULL),('influxUser32',NULL,'Influx User32',NULL,NULL,NULL,NULL),('influxUser33',NULL,'Influx User33',NULL,NULL,NULL,NULL),('influxUser34',NULL,'Influx User34',NULL,NULL,NULL,NULL),('influxUser35',NULL,'Influx User35',NULL,NULL,NULL,NULL),('influxUser36',NULL,'Influx User36',NULL,NULL,NULL,NULL),('influxUser37',NULL,'Influx User37',NULL,NULL,NULL,NULL),('influxUser38',NULL,'Influx User38',NULL,NULL,NULL,NULL),('influxUser39',NULL,'Influx User39',NULL,NULL,NULL,NULL),('influxUser4',NULL,'Influx User4',NULL,NULL,NULL,NULL),('influxUser40',NULL,'Influx User40',NULL,NULL,NULL,NULL),('influxUser41',NULL,'Influx User41',NULL,NULL,NULL,NULL),('influxUser42',NULL,'Influx User42',NULL,NULL,NULL,NULL),('influxUser43',NULL,'Influx User43',NULL,NULL,NULL,NULL),('influxUser44',NULL,'Influx User44',NULL,NULL,NULL,NULL),('influxUser45',NULL,'Influx User45',NULL,NULL,NULL,NULL),('influxUser46',NULL,'Influx User46',NULL,NULL,NULL,NULL),('influxUser47',NULL,'Influx User47',NULL,NULL,NULL,NULL),('influxUser48',NULL,'Influx User48',NULL,NULL,NULL,NULL),('influxUser49',NULL,'Influx User49',NULL,NULL,NULL,NULL),('influxUser5',NULL,'Influx User5',NULL,NULL,NULL,NULL),('influxUser50',NULL,'Influx User50',NULL,NULL,NULL,NULL),('influxUser51',NULL,'Influx User51',NULL,NULL,NULL,NULL),('influxUser52',NULL,'Influx User52',NULL,NULL,NULL,NULL),('influxUser53',NULL,'Influx User53',NULL,NULL,NULL,NULL),('influxUser54',NULL,'Influx User54',NULL,NULL,NULL,NULL),('influxUser55',NULL,'Influx User55',NULL,NULL,NULL,NULL),('influxUser56',NULL,'Influx User56',NULL,NULL,NULL,NULL),('influxUser57',NULL,'Influx User57',NULL,NULL,NULL,NULL),('influxUser58',NULL,'Influx User58',NULL,NULL,NULL,NULL),('influxUser59',NULL,'Influx User59',NULL,NULL,NULL,NULL),('influxUser6',NULL,'Influx User6',NULL,NULL,NULL,NULL),('influxUser60',NULL,'Influx User60',NULL,NULL,NULL,NULL),('influxUser61',NULL,'Influx User61',NULL,NULL,NULL,NULL),('influxUser62',NULL,'Influx User62',NULL,NULL,NULL,NULL),('influxUser63',NULL,'Influx User63',NULL,NULL,NULL,NULL),('influxUser7',NULL,'Influx User7',NULL,NULL,NULL,NULL),('influxUser8',NULL,'Influx User8',NULL,NULL,NULL,NULL),('influxUser9',NULL,'Influx User9',NULL,NULL,NULL,NULL),('woodyUser1',NULL,'Woody User1',NULL,NULL,NULL,NULL),('woodyUser2',NULL,'Woody User2',NULL,NULL,NULL,NULL),('woodyUser3',NULL,'Woody User3',NULL,NULL,NULL,NULL),('woodyUser4',NULL,'Woody User4',NULL,NULL,NULL,NULL),('woodyUser5',NULL,'Woody User5',NULL,NULL,NULL,NULL);
/*!40000 ALTER TABLE `user` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

File diff suppressed because one or more lines are too long