6995-testToMaster_2410 #2139
|
@ -18,7 +18,7 @@ ALTER TABLE vn.expenseManual MODIFY COLUMN companyFk int(10) unsigned NULL;
|
||||||
|
|
||||||
UPDATE vn.expenseManual
|
UPDATE vn.expenseManual
|
||||||
SET companyFK= NULL
|
SET companyFK= NULL
|
||||||
WHERE companyFk= 0
|
WHERE companyFk= 0;
|
||||||
|
|
||||||
ALTER TABLE IF EXISTS vn.expenseManual ADD CONSTRAINT expenseManual_company_FK FOREIGN KEY IF NOT EXISTS (companyFk) REFERENCES vn.company(id) ON DELETE CASCADE ON UPDATE CASCADE;
|
ALTER TABLE IF EXISTS vn.expenseManual ADD CONSTRAINT expenseManual_company_FK FOREIGN KEY IF NOT EXISTS (companyFk) REFERENCES vn.company(id) ON DELETE CASCADE ON UPDATE CASCADE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue