From 7a280e894384ec5afceead5f98a16689ae8c9091 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nya=20=CE=9Elimu?= Date: Wed, 21 Aug 2024 14:42:55 +0700 Subject: [PATCH] Update 2004020.sql --- src/main/resources/db/migration/2004020.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/resources/db/migration/2004020.sql b/src/main/resources/db/migration/2004020.sql index 468b0470a..945bdba2b 100644 --- a/src/main/resources/db/migration/2004020.sql +++ b/src/main/resources/db/migration/2004020.sql @@ -1,4 +1,5 @@ # 2.4.20 ALTER TABLE `Device` DROP COLUMN `androidId`; -ALTER TABLE `Device` CHANGE `deviceId` `androidId` VARCHAR(255); +ALTER TABLE `Device` CHANGE `deviceId` `androidId` VARCHAR(255) NOT NULL; +ALTER TABLE `Device` ADD CONSTRAINT `UK_c2646199whiqrkjbht7hwyr3v` UNIQUE (`androidId`);