From 6bfce19417570991668eeb732c687dcb8e7168c5 Mon Sep 17 00:00:00 2001 From: wangchao Date: Wed, 12 Aug 2020 11:06:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=B4=A2=E5=BC=95=E7=9A=84sq?= =?UTF-8?q?l?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V0.0.3__unixKeyOnStatisticalAndTotal.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 epmet-module/epmet-point/epmet-point-server/src/main/resources/db/migration/V0.0.3__unixKeyOnStatisticalAndTotal.sql diff --git a/epmet-module/epmet-point/epmet-point-server/src/main/resources/db/migration/V0.0.3__unixKeyOnStatisticalAndTotal.sql b/epmet-module/epmet-point/epmet-point-server/src/main/resources/db/migration/V0.0.3__unixKeyOnStatisticalAndTotal.sql new file mode 100644 index 0000000000..4eda6716dc --- /dev/null +++ b/epmet-module/epmet-point/epmet-point-server/src/main/resources/db/migration/V0.0.3__unixKeyOnStatisticalAndTotal.sql @@ -0,0 +1,5 @@ + +ALTER TABLE point_verification_statistical_daily ADD UNIQUE STAFF_DATE_AGENCY(CREATED_BY,DATE_ID,AGENCY_ID,CUSTOMER_ID); + + +ALTER TABLE USER_POINT_TOTAL ADD UNIQUE USR(USER_ID,CUSTOMER_ID); \ No newline at end of file