1EdTech / LTI-Sample-Tool-Provider-PHP

GNU General Public License v3.0
21 stars 18 forks source link

Database foreign key creation references wrong table #7

Open screambeard opened 7 years ago

screambeard commented 7 years ago

The following code references the wrong table "lti_resource_link". This should be updated to "lti2_resource_link". Since this is tabel which is now created for The LTI-Tool-Provider library (see https://github.com/IMSGlobal/LTI-Tool-Provider-Library-PHP/wiki/Installation)

ALTER TABLE item ADD CONSTRAINT item_lti_resource_link_FK1 FOREIGN KEY (resource_link_pk) REFERENCES lti_resource_link (resource_link_pk) ON UPDATE CASCADE;