Skip to content
Snippets Groups Projects
Verified Commit f095dda6 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

TST: remove groups table from example.dump.sql

parent a22de17f
No related branches found
No related tags found
2 merge requests!7Release v5.0.0,!6EHN: Add new base schema (db_5_0.sql) for installation
Pipeline #13736 passed with warnings
...@@ -325,32 +325,6 @@ INSERT INTO `files` VALUES (226,'ExperimentalData/Unicorn/2025-10-11/Unicorn.jpg ...@@ -325,32 +325,6 @@ INSERT INTO `files` VALUES (226,'ExperimentalData/Unicorn/2025-10-11/Unicorn.jpg
/*!40000 ALTER TABLE `files` ENABLE KEYS */; /*!40000 ALTER TABLE `files` ENABLE KEYS */;
UNLOCK TABLES; UNLOCK TABLES;
   
--
-- Table structure for table `groups`
--
DROP TABLE IF EXISTS `groups`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `groups` (
`user_id` int(10) unsigned NOT NULL,
`group_id` int(10) unsigned NOT NULL,
UNIQUE KEY `user_id` (`user_id`,`group_id`),
KEY `group_id_entities_id` (`group_id`),
CONSTRAINT `group_id_entities_id` FOREIGN KEY (`group_id`) REFERENCES `entities` (`id`),
CONSTRAINT `user_id_entities_id` FOREIGN KEY (`user_id`) REFERENCES `entities` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `groups`
--
LOCK TABLES `groups` WRITE;
/*!40000 ALTER TABLE `groups` DISABLE KEYS */;
/*!40000 ALTER TABLE `groups` ENABLE KEYS */;
UNLOCK TABLES;
-- --
-- Table structure for table `integer_data` -- Table structure for table `integer_data`
-- --
...@@ -3169,30 +3143,6 @@ BEGIN ...@@ -3169,30 +3143,6 @@ BEGIN
   
   
   
END ;;
DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ;
/*!50003 SET character_set_client = @saved_cs_client */ ;
/*!50003 SET character_set_results = @saved_cs_results */ ;
/*!50003 SET collation_connection = @saved_col_connection */ ;
/*!50003 DROP PROCEDURE IF EXISTS `retrieveGroup` */;
/*!50003 SET @saved_cs_client = @@character_set_client */ ;
/*!50003 SET @saved_cs_results = @@character_set_results */ ;
/*!50003 SET @saved_col_connection = @@collation_connection */ ;
/*!50003 SET character_set_client = utf8mb4 */ ;
/*!50003 SET character_set_results = utf8mb4 */ ;
/*!50003 SET collation_connection = utf8mb4_general_ci */ ;
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
/*!50003 SET sql_mode = 'STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */ ;
DELIMITER ;;
CREATE DEFINER=`caosdb`@`%` PROCEDURE `retrieveGroup`(in USERID INT UNSIGNED, in GROUPID INT UNSIGNED)
BEGIN
IF USERID IS NOT NULL THEN
Select user_id, group_id from groups where user_id = USERID;
ELSEIF GROUPID IS NOT NULL THEN
Select user_id, group_id from groups where group_id = GROUPID;
END IF;
END ;; END ;;
DELIMITER ; DELIMITER ;
/*!50003 SET sql_mode = @saved_sql_mode */ ; /*!50003 SET sql_mode = @saved_sql_mode */ ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment