1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 18:19:25 +00:00

Fix test_class relationship

This commit is contained in:
2022-04-21 13:13:31 +00:00
parent 4cb10d4e2d
commit 219754dc1f

View File

@@ -197,12 +197,12 @@ tableConstraints.set('studentParentLink_fk1', `
ON UPDATE NO ACTION; ON UPDATE NO ACTION;
`); `);
tableConstraints.set('fk_test_account', ` tableConstraints.set('fk_test_class', `
ALTER TABLE test ALTER TABLE test
ADD CONSTRAINT fk_test_account ADD CONSTRAINT fk_test_class
FOREIGN KEY IF NOT EXISTS ( classId ) FOREIGN KEY IF NOT EXISTS ( classId )
REFERENCES class( classId ) REFERENCES class( classId )
ON DELETE RESTRICT ON DELETE CASCADE
ON UPDATE NO ACTION; ON UPDATE NO ACTION;
`); `);