2024-04-24 12:08:26 +00:00
|
|
|
ALTER TABLE vn.deviceProductionUser DROP INDEX IF EXISTS deviceProductionUser_UN;
|
|
|
|
|
2024-05-03 12:20:16 +00:00
|
|
|
ALTER TABLE vn.deviceProductionUser DROP FOREIGN KEY IF EXISTS deviceProductionUser_FK;
|
2024-04-23 16:50:28 +00:00
|
|
|
|
|
|
|
ALTER TABLE vn.deviceProductionUser DROP PRIMARY KEY;
|
|
|
|
|
2024-05-03 12:20:16 +00:00
|
|
|
ALTER TABLE vn.deviceProductionUser ADD IF NOT EXISTS id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY FIRST;
|
2024-04-24 09:08:57 +00:00
|
|
|
|
2024-05-03 12:20:16 +00:00
|
|
|
ALTER TABLE vn.deviceProductionUser ADD CONSTRAINT deviceProductionUser_deviceProduction_FK FOREIGN KEY IF NOT EXISTS (deviceProductionFk) REFERENCES vn.deviceProduction(id);
|
2024-04-24 09:08:57 +00:00
|
|
|
|
2024-05-03 12:20:16 +00:00
|
|
|
ALTER TABLE vn.deviceProductionUser ADD CONSTRAINT deviceProductionUser_unique UNIQUE KEY IF NOT EXISTS (deviceProductionFk);
|
2024-04-24 12:05:18 +00:00
|
|
|
|
2024-05-03 12:20:16 +00:00
|
|
|
ALTER TABLE vn.deviceProductionUser ADD IF NOT EXISTS simSerialNumber TEXT NULL;
|
2024-04-24 12:05:18 +00:00
|
|
|
|
2024-05-03 12:20:16 +00:00
|
|
|
ALTER TABLE vn.deviceProductionConfig ADD IF NOT EXISTS maxDevicesPerUser INT UNSIGNED NULL;
|
2024-04-24 12:29:57 +00:00
|
|
|
|
|
|
|
UPDATE vn.deviceProductionConfig SET maxDevicesPerUser=1 WHERE id=1;
|
2024-05-16 08:23:33 +00:00
|
|
|
|
|
|
|
INSERT IGNORE INTO salix.ACL (model,property,accessType,permission,principalType,principalId)
|
|
|
|
VALUES ('Worker','getAvailablePda','READ','ALLOW','ROLE','hr');
|
|
|
|
|