salix/db/changes/10250-curfew/01-supplierFreighter.sql

12 lines
410 B
MySQL
Raw Normal View History

2020-11-16 07:48:42 +00:00
CREATE TABLE `vn`.supplierFreighter
(
supplierFk INT NOT NULL,
CONSTRAINT supplierFreighter_pk
PRIMARY KEY (supplierFk),
CONSTRAINT supplier_id_fk
FOREIGN KEY (supplierFk) REFERENCES supplier (id)
ON UPDATE CASCADE ON DELETE CASCADE
);
INSERT IGNORE INTO `vn`.supplierFreighter (supplierFk) VALUES (1);
INSERT IGNORE INTO `vn`.supplierFreighter (supplierFk) VALUES (2);