From d5e8cdf432c6a5736594bdb927407ffa05ff846d Mon Sep 17 00:00:00 2001 From: MactavishCui Date: Thu, 28 Nov 2024 01:21:55 +0800 Subject: [PATCH] my sql ddl --- .../mysql/V20241128.1.3.0__release.sql | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 dinky-admin/src/main/resources/db/migration/mysql/V20241128.1.3.0__release.sql diff --git a/dinky-admin/src/main/resources/db/migration/mysql/V20241128.1.3.0__release.sql b/dinky-admin/src/main/resources/db/migration/mysql/V20241128.1.3.0__release.sql new file mode 100644 index 0000000000..c721044d92 --- /dev/null +++ b/dinky-admin/src/main/resources/db/migration/mysql/V20241128.1.3.0__release.sql @@ -0,0 +1,20 @@ +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for dinky_task_test_case +-- ---------------------------- +CREATE TABLE IF NOT EXISTS `dinky_task_test_case` ( + `id` INT(11) NOT NULL AUTO_INCREMENT COMMENT 'id', + `task_id` INT(11) NOT NULL COMMENT 'taskId', + `table_name` VARCHAR(255) CHARACTER SET Utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT 'table name', + `columns` MEDIUMTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'columns', + `row_data` MEDIUMTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT 'row data', + `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'update time', + PRIMARY KEY (`id`), + UNIQUE INDEX `id_table_name_un_idx1` (`task_id`, `table_name`) USING BTREE, + FOREIGN KEY (`task_id`) REFERENCES `dinky_task` (`id`) ON DELETE CASCADE +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = 'Test Case' ROW_FORMAT = Dynamic; + + +SET FOREIGN_KEY_CHECKS = 1; \ No newline at end of file