This repository has been archived by the owner on Apr 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
6 changed files
with
62 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
''' | ||
Add in the initial LTI Type Table | ||
''' | ||
|
||
from yoyo import step | ||
|
||
__depends__ = {'0020.add_lti_usage'} | ||
|
||
steps = [ | ||
step(''' | ||
CREATE TABLE IF NOT EXISTS lti_type ( | ||
canvas_id INTEGER NOT NULL, | ||
des VARCHAR(200), | ||
rpt_group_nm VARCHAR(200), | ||
PRIMARY KEY (canvas_id) | ||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; | ||
'''), | ||
step(''' | ||
ALTER TABLE lti_placement | ||
ADD FOREIGN KEY (placement_type_id) REFERENCES lti_type(canvas_id) | ||
ON DELETE RESTRICT ON UPDATE CASCADE | ||
'''), | ||
step(''' | ||
INSERT INTO lti_type (canvas_id, des, rpt_group_nm) | ||
VALUES (25194, 'Zoom', 'Zoom'), | ||
(4352, 'Bluejeans', 'Bluejeans'); | ||
'''), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters