You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ca...@apache.org on 2022/09/07 13:10:53 UTC
[incubator-linkis] branch dev-1.3.1 updated: add unique key for linkis_ps_dm_datasource_type_key (#3275)
This is an automated email from the ASF dual-hosted git repository.
casion pushed a commit to branch dev-1.3.1
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/dev-1.3.1 by this push:
new 8309a0b8a add unique key for linkis_ps_dm_datasource_type_key (#3275)
8309a0b8a is described below
commit 8309a0b8a864325619d5ad91297ac5fa4d955d9c
Author: chenmutime <ch...@outlook.com>
AuthorDate: Wed Sep 7 21:10:49 2022 +0800
add unique key for linkis_ps_dm_datasource_type_key (#3275)
Co-authored-by: v_minminghe <v_...@webank.com>
---
linkis-dist/package/db/upgrade/1.3.1_schema/mysql/linkis_ddl.sql | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/linkis-dist/package/db/upgrade/1.3.1_schema/mysql/linkis_ddl.sql b/linkis-dist/package/db/upgrade/1.3.1_schema/mysql/linkis_ddl.sql
index 01c42b1ff..5696c77be 100644
--- a/linkis-dist/package/db/upgrade/1.3.1_schema/mysql/linkis_ddl.sql
+++ b/linkis-dist/package/db/upgrade/1.3.1_schema/mysql/linkis_ddl.sql
@@ -25,4 +25,9 @@ ALTER TABLE `linkis_ps_dm_datasource_env` MODIFY COLUMN `parameter` varchar(1024
-- ----------------------------
-- Alter table structure for linkis_ps_dm_datasource
-- ----------------------------
-ALTER TABLE `linkis_ps_dm_datasource` MODIFY COLUMN `parameter` varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin NULL;
\ No newline at end of file
+ALTER TABLE `linkis_ps_dm_datasource` MODIFY COLUMN `parameter` varchar(1024) CHARACTER SET utf8 COLLATE utf8_bin NULL;
+
+-- ----------------------------
+-- Alter table structure for linkis_ps_dm_datasource_type_key
+-- ----------------------------
+ALTER TABLE `linkis_ps_dm_datasource_type_key` ADD CONSTRAINT `data_source_type_id_key` UNIQUE (`data_source_type_id`, `key`);
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org