Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LabNbook
LabNbook-code
Commits
d65a7bae
Verified
Commit
d65a7bae
authored
Mar 11, 2021
by
David Beniamine
Browse files
Add missing table to test database
parent
b5349171
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/_data/labnbook_test.sql
View file @
d65a7bae
...
...
@@ -623,8 +623,21 @@ CREATE TABLE `link_extplatform_user` (
CONSTRAINT
`link_extplatform_user_ibfk_1`
FOREIGN
KEY
(
`id_user`
)
REFERENCES
`user`
(
`id_user`
)
ON
DELETE
CASCADE
,
CONSTRAINT
`link_extplatform_user_ibfk_2`
FOREIGN
KEY
(
`id_extplatform`
)
REFERENCES
`extplatform`
(
`id_extplatform`
)
ON
DELETE
CASCADE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
;
SET
FOREIGN_KEY_CHECKS
=
1
;
--
-- Table structure for table `link_annotation_learner`
--
DROP
TABLE
IF
EXISTS
`link_annotation_learner`
;
CREATE
TABLE
`link_annotation_learner`
(
`id_annotation`
int
(
10
)
unsigned
NOT
NULL
,
`id_user`
int
(
10
)
unsigned
NOT
NULL
,
PRIMARY
KEY
(
`id_annotation`
,
`id_user`
),
KEY
`id_user`
(
`id_user`
),
CONSTRAINT
`link_annotation_learner_ibfk_1`
FOREIGN
KEY
(
`id_user`
)
REFERENCES
`user`
(
`id_user`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
,
CONSTRAINT
`link_annotation_learner_ibfk_2`
FOREIGN
KEY
(
`id_annotation`
)
REFERENCES
`annotation`
(
`id_annotation`
)
ON
DELETE
CASCADE
ON
UPDATE
CASCADE
)
ENGINE
=
InnoDB
DEFAULT
CHARSET
=
utf8mb4
COLLATE
=
utf8mb4_unicode_ci
;
SET
FOREIGN_KEY_CHECKS
=
1
;
--
-- data
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment