salix/db/versions/.archive/10207-greenRose/00-Alter_table_entry.sql

3 lines
233 B
MySQL
Raw Normal View History

ALTER TABLE vn.entry ADD invoiceAmount DECIMAL(10,2) DEFAULT NULL;
ALTER TABLE vn.entry ADD buyerFk INT(10) unsigned NULL;
ALTER TABLE vn.entry ADD CONSTRAINT entry_FK FOREIGN KEY (buyerFk) REFERENCES vn.worker(id) ON UPDATE CASCADE;