Drop index on serial_number, create unique constraint on both serial_number and udid to cover both DEP and OTA enrollment scenarios.

This commit is contained in:
Mosen
2016-06-22 17:12:39 +10:00
parent 2af4e101a9
commit fca17af118
4 changed files with 5 additions and 2 deletions

View File

@@ -1 +0,0 @@
DROP INDEX udid_idx;

View File

@@ -1 +0,0 @@
CREATE UNIQUE INDEX IF NOT EXISTS udid_idx ON devices (udid);

View File

@@ -0,0 +1 @@
DROP INDEX udid_serial_idx;

View File

@@ -0,0 +1,4 @@
DROP INDEX serial_idx;
-- Need a composite constraint because DEP uses serial and OTA enrollment uses UDID
CREATE UNIQUE INDEX IF NOT EXISTS udid_serial_idx ON devices (udid, serial_number);