Go back to unique indexes on serial number and udid. Will use NullString on those struct columns.

This commit is contained in:
Mosen
2016-06-28 19:59:35 +10:00
parent 0bbdb50415
commit 2c388edc11
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
DROP INDEX IF EXISTS serial_idx;
DROP INDEX IF EXISTS udid_idx;
CREATE UNIQUE INDEX IF NOT EXISTS udid_serial_idx ON devices (udid, serial_number);

View File

@@ -0,0 +1,5 @@
-- Add the UUID and Serial Number back as individual UNIQUE constraints, along with others
DROP INDEX udid_serial_idx;
CREATE UNIQUE INDEX IF NOT EXISTS serial_idx ON devices (serial_number);
CREATE UNIQUE INDEX IF NOT EXISTS udid_idx ON devices (udid);