2024-04-24 12:08:26 +00:00
|
|
|
ALTER TABLE vn.deviceProductionUser DROP INDEX IF EXISTS deviceProductionUser_UN;
|
|
|
|
|
2024-04-23 16:50:28 +00:00
|
|
|
ALTER TABLE vn.deviceProductionUser DROP FOREIGN KEY deviceProductionUser_FK;
|
|
|
|
|
|
|
|
ALTER TABLE vn.deviceProductionUser DROP PRIMARY KEY;
|
|
|
|
|
|
|
|
ALTER TABLE vn.deviceProductionUser ADD id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY FIRST;
|
2024-04-24 09:08:57 +00:00
|
|
|
|
|
|
|
ALTER TABLE vn.deviceProductionUser ADD CONSTRAINT deviceProductionUser_deviceProduction_FK FOREIGN KEY (deviceProductionFk) REFERENCES vn.deviceProduction(id);
|
|
|
|
|
|
|
|
ALTER TABLE vn.deviceProductionUser ADD CONSTRAINT deviceProductionUser_unique UNIQUE KEY (deviceProductionFk);
|
2024-04-24 12:05:18 +00:00
|
|
|
|
|
|
|
ALTER TABLE vn.deviceProduction ADD simSerialNumber TEXT NULL;
|
|
|
|
|