mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 15:59:25 +00:00
Fix test_class relationship
This commit is contained in:
@@ -197,12 +197,12 @@ tableConstraints.set('studentParentLink_fk1', `
|
||||
ON UPDATE NO ACTION;
|
||||
`);
|
||||
|
||||
tableConstraints.set('fk_test_account', `
|
||||
tableConstraints.set('fk_test_class', `
|
||||
ALTER TABLE test
|
||||
ADD CONSTRAINT fk_test_account
|
||||
ADD CONSTRAINT fk_test_class
|
||||
FOREIGN KEY IF NOT EXISTS ( classId )
|
||||
REFERENCES class( classId )
|
||||
ON DELETE RESTRICT
|
||||
ON DELETE CASCADE
|
||||
ON UPDATE NO ACTION;
|
||||
`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user