From 7ba6050196b122d6e490c0bb0180b7677f1892ad Mon Sep 17 00:00:00 2001 From: Yingjian Wu Date: Sat, 1 Jun 2024 22:04:38 -0700 Subject: [PATCH] fixTest --- .../docker-entrypoint-initdb.d/metacat.sql | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/metacat-functional-tests/metacat-test-cluster/datastores/mysql/docker-entrypoint-initdb.d/metacat.sql b/metacat-functional-tests/metacat-test-cluster/datastores/mysql/docker-entrypoint-initdb.d/metacat.sql index 189700dc6..7b0996154 100644 --- a/metacat-functional-tests/metacat-test-cluster/datastores/mysql/docker-entrypoint-initdb.d/metacat.sql +++ b/metacat-functional-tests/metacat-test-cluster/datastores/mysql/docker-entrypoint-initdb.d/metacat.sql @@ -44,6 +44,36 @@ CREATE TABLE data_metadata_delete ( KEY date_created (date_created) ) DEFAULT CHARSET=latin1; +-- +-- Table structure for table `parent_child_relation` +-- +DROP TABLE IF EXISTS `parent_child_relation`; +CREATE TABLE `parent_child_relation` ( + `parent` varchar(255) NOT NULL, + `child` varchar(255) NOT NULL, + `relation_type` varchar(255) NOT NULL, + PRIMARY KEY (`parent`, `child`, `relation_type`), + INDEX `idx_child` (`child`) +) ENGINE=InnoDB AUTO_INCREMENT=10078235 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + +DROP TABLE IF EXISTS `definition_metadata`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `definition_metadata` ( + `id` bigint(20) NOT NULL AUTO_INCREMENT, + `version` bigint(20) NOT NULL, + `created_by` varchar(255) NOT NULL, + `data` longtext NOT NULL, + `date_created` datetime NOT NULL, + `last_updated` datetime NOT NULL, + `last_updated_by` varchar(255) NOT NULL, + `name` varchar(255) NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `name` (`name`) +) ENGINE=InnoDB AUTO_INCREMENT=10078235 DEFAULT CHARSET=latin1; +/*!40101 SET character_set_client = @saved_cs_client */; + -- -- Table structure for table `definition_metadata` --