From 9194610d7f04afea43b788bb179610ce1a93dbe2 Mon Sep 17 00:00:00 2001 From: littlejian <17816869670@163.com> Date: Wed, 27 Oct 2021 18:12:24 +0800 Subject: [PATCH] add unique key to dice_app (#2611) --- .erda/migrations/cmdb/20211027-app-projectID-name-index.sql | 1 + 1 file changed, 1 insertion(+) create mode 100644 .erda/migrations/cmdb/20211027-app-projectID-name-index.sql diff --git a/.erda/migrations/cmdb/20211027-app-projectID-name-index.sql b/.erda/migrations/cmdb/20211027-app-projectID-name-index.sql new file mode 100644 index 00000000000..2b5216397b7 --- /dev/null +++ b/.erda/migrations/cmdb/20211027-app-projectID-name-index.sql @@ -0,0 +1 @@ +ALTER TABLE `dice_app` ADD UNIQUE KEY `uk_project_id_name` (`project_id`,`name`); \ No newline at end of file