salix/db/versions/.archive/10717-silverRose/00-firstScript.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;