6 lines
380 B
SQL
6 lines
380 B
SQL
ALTER TABLE vn.expedition ADD packingSiteFk INT NULL;
|
|
ALTER TABLE vn.expedition ADD monitorId varchar(255) NULL;
|
|
ALTER TABLE vn.expedition ADD started TIMESTAMP NOT NULL;
|
|
ALTER TABLE vn.expedition ADD ended TIMESTAMP NOT NULL;
|
|
|
|
ALTER TABLE vn.expedition ADD CONSTRAINT expedition_FK_1 FOREIGN KEY (packingSiteFk) REFERENCES vn.packingSite(id) ON DELETE SET NULL ON UPDATE CASCADE; |