Unverified Commit 87d5483c authored by zhu-mingye's avatar zhu-mingye Committed by GitHub

Added tenant support for fragment (#1476)

parent c143955c
......@@ -90,7 +90,7 @@ public class AppConfiguration implements WebMvcConfigurer {
.addPathPatterns("/api/statement/**")
.addPathPatterns("/api/task/**")
.addPathPatterns("/api/role/**")
// .addPathPatterns("/api/fragment/**")
.addPathPatterns("/api/fragment/**")
.addPathPatterns("/api/jar/*");
}
}
......@@ -48,7 +48,7 @@ public class MybatisPlusConfig {
private static final List<String> IGNORE_TABLE_NAMES = Lists.newArrayList(
"dlink_namespace", "dlink_alert_group", "dlink_alert_history", "dlink_alert_instance", "dlink_catalogue",
"dlink_cluster", "dlink_cluster_configuration", "dlink_database"
// ,"dlink_fragment"
,"dlink_fragment"
, "dlink_history", "dlink_jar", "dlink_job_history", "dlink_job_instance", "dlink_role", "dlink_savepoints",
"dlink_task", "dlink_task_statement", "dlink_task_version");
......
......@@ -45,6 +45,7 @@ public class FragmentVariable extends SuperEntity {
@TableField(fill = FieldFill.INSERT)
private String alias;
private Integer tenantId;
private String fragmentValue;
private String note;
......
......@@ -194,4 +194,6 @@ CREATE TABLE IF NOT EXISTS `dlink_udf_template` (
alter table `dlink_task_statement` modify column `statement` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'statement set';
alter table `dlink_history` modify column `statement` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'statement set';
\ No newline at end of file
alter table `dlink_history` modify column `statement` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci COMMENT 'statement set';
alter table dlink_fragment add column `tenant_id` int not null DEFAULT '1' comment 'tenant id' after alias;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment