forked from DataLinkDC/dinky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e32b38
commit d5e8cdf
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
dinky-admin/src/main/resources/db/migration/mysql/V20241128.1.3.0__release.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |