4 lines
565 B
SQL
4 lines
565 B
SQL
ALTER TABLE vn.packagingConfig ADD defaultSmallPackageFk VARCHAR(10) DEFAULT '94p' NOT NULL COMMENT 'bulto pequeño';
|
|
ALTER TABLE vn.packagingConfig ADD defaultBigPackageFk VARCHAR(10) DEFAULT '94m' NOT NULL COMMENT 'bulto grande';
|
|
ALTER TABLE vn.packagingConfig ADD CONSTRAINT packagingConfig_FK FOREIGN KEY (defaultSmallPackageFk) REFERENCES vn.packaging(id) ON DELETE RESTRICT ON UPDATE CASCADE;
|
|
ALTER TABLE vn.packagingConfig ADD CONSTRAINT packagingConfig_FK_1 FOREIGN KEY (defaultBigPackageFk) REFERENCES vn.packaging(id) ON DELETE RESTRICT ON UPDATE CASCADE; |