Actualizar db/versions/11327-maroonOak/00-firstScript.sql
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
11827207ba
commit
ec2b6dd0c2
|
@ -13,9 +13,6 @@ CREATE TABLE IF NOT EXISTS `vn`.`simSupplier` (
|
||||||
ALTER TABLE `vn`.`deviceProductionUser`
|
ALTER TABLE `vn`.`deviceProductionUser`
|
||||||
MODIFY `simSerialNumber` VARCHAR(25);
|
MODIFY `simSerialNumber` VARCHAR(25);
|
||||||
|
|
||||||
ALTER TABLE vn.deviceProductionUser ADD CONSTRAINT deviceProductionUser_simSupplier_FK
|
|
||||||
FOREIGN KEY (simSerialNumber) REFERENCES vn.simSupplier(sim);
|
|
||||||
|
|
||||||
INSERT IGNORE INTO `vn`.`simSupplier` (`line`, `ext`, `pin`, `sim`, `puk`)
|
INSERT IGNORE INTO `vn`.`simSupplier` (`line`, `ext`, `pin`, `sim`, `puk`)
|
||||||
VALUES
|
VALUES
|
||||||
(621188151, '2209', '1486', 3456985220092508,14213470),
|
(621188151, '2209', '1486', 3456985220092508,14213470),
|
||||||
|
@ -174,4 +171,7 @@ VALUES
|
||||||
(673465843, '2698', '4773', 34562032400171364,78387158),
|
(673465843, '2698', '4773', 34562032400171364,78387158),
|
||||||
(673465842, '2697', '3729', 34562032400171315,94201789),
|
(673465842, '2697', '3729', 34562032400171315,94201789),
|
||||||
(673465280, '2691', '0503', 34562032400171307,12298533),
|
(673465280, '2691', '0503', 34562032400171307,12298533),
|
||||||
(673465279, '2690', '8239', 34562032400171299,76183877);
|
(673465279, '2690', '8239', 34562032400171299,76183877);
|
||||||
|
|
||||||
|
ALTER TABLE vn.deviceProductionUser ADD CONSTRAINT deviceProductionUser_simSupplier_FK
|
||||||
|
FOREIGN KEY (simSerialNumber) REFERENCES vn.simSupplier(sim) ON DELETE CASCADE ON UPDATE CASCADE;
|
Loading…
Reference in New Issue