Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DB-Airport
Config
Commits
aab8d73b
Commit
aab8d73b
authored
6 years ago
by
Lukas Köhler
Browse files
Options
Downloads
Patches
Plain Diff
sql scripts
parent
1cbcca2c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/opensubmit/clearAll.sql
+3
-0
3 additions, 0 deletions
config/opensubmit/clearAll.sql
config/opensubmit/courses.sql
+0
-14
0 additions, 14 deletions
config/opensubmit/courses.sql
config/opensubmit/initDatabase.sql
+89
-0
89 additions, 0 deletions
config/opensubmit/initDatabase.sql
with
92 additions
and
14 deletions
config/opensubmit/clearAll.sql
0 → 100644
+
3
−
0
View file @
aab8d73b
DELETE
FROM
opensubmit_assignment_test_machines
;
DELETE
FROM
opensubmit_assignment
;
DELETE
FROM
opensubmit_course
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
config/opensubmit/courses.sql
deleted
100644 → 0
+
0
−
14
View file @
1cbcca2c
INSERT
INTO
public
.
opensubmit_course
(
id
,
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
1
,
'Roth-Fr1y'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
1
,
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
id
,
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
2
,
'Roth-Fr1x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
1
,
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
id
,
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
3
,
'Roth-Fr2x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
1
,
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
id
,
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
4
,
'Roth-Fr2y'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
1
,
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
id
,
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
5
,
'Ruehl-Fr2x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
1
,
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
id
,
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
6
,
'Ruehl-Fr2y'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
1
,
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
id
,
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
7
,
'Ruehl-Fr4x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
1
,
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
id
,
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
8
,
'Ruehl-Fr4y'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
1
,
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
id
,
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
9
,
'Ruehl-Do5x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
1
,
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
id
,
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
10
,
'Peter-Fr5x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
1
,
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
id
,
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
11
,
'Peter-Fr5y'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
1
,
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
id
,
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
12
,
'Peter-Fr6x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
1
,
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
id
,
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
13
,
'Peter-Fr6y'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
1
,
null
,
null
);
This diff is collapsed.
Click to expand it.
config/opensubmit/initDatabase.sql
0 → 100644
+
89
−
0
View file @
aab8d73b
INSERT
INTO
public
.
opensubmit_course
(
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
'Roth-Fr1y'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
(
select
id
from
auth_user
where
username
=
'm.roth'
),
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
'Roth-Fr1x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
(
select
id
from
auth_user
where
username
=
'm.roth'
),
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
'Roth-Fr2x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
(
select
id
from
auth_user
where
username
=
'm.roth'
),
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
'Roth-Fr2y'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
(
select
id
from
auth_user
where
username
=
'm.roth'
),
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
'Ruehl-Fr2x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
(
select
id
from
auth_user
where
username
=
's.ruehl'
),
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
'Ruehl-Fr2y'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
(
select
id
from
auth_user
where
username
=
's.ruehl'
),
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
'Ruehl-Fr4x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
(
select
id
from
auth_user
where
username
=
's.ruehl'
),
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
'Ruehl-Fr4y'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
(
select
id
from
auth_user
where
username
=
's.ruehl'
),
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
'Ruehl-Do5x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
(
select
id
from
auth_user
where
username
=
's.ruehl'
),
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
'Peter-Fr5x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
(
select
id
from
auth_user
where
username
=
'l.koehler'
),
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
'Peter-Fr5y'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
(
select
id
from
auth_user
where
username
=
'l.koehler'
),
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
'Peter-Fr6x'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
(
select
id
from
auth_user
where
username
=
'l.koehler'
),
null
,
null
);
INSERT
INTO
public
.
opensubmit_course
(
title
,
created
,
homepage
,
active
,
owner_id
,
lti_key
,
lti_secret
)
VALUES
(
'Peter-Fr6y'
,
now
(),
'https://lernen.h-da.de/course/view.php?id=8252'
,
true
,
(
select
id
from
auth_user
where
username
=
'l.koehler'
),
null
,
null
);
INSERT
INTO
public
.
opensubmit_assignment
(
title
,
download
,
created
,
publish_at
,
soft_deadline
,
hard_deadline
,
has_attachment
,
attachment_test_timeout
,
attachment_test_validity
,
validity_script_download
,
attachment_test_full
,
course_id
,
"gradingScheme_id"
,
description
,
max_authors
)
SELECT
'Praktikum 3'
,
'https://lernen.h-da.de/pluginfile.php/344926/mod_resource/content/1/Praktikum3.pdf'
,
'2018-10-02 07:00:29.652859'
,
'2018-10-01 07:00:29.652859'
,
null
,
'2019-07-01 09:00:00.000000'
,
true
,
30
,
'testscripts/validate.py'
,
false
,
''
,
c
.
id
,
null
,
''
,
1
FROM
(
SELECT
id
FROM
opensubmit_course
)
c
;
INSERT
INTO
public
.
opensubmit_assignment
(
title
,
download
,
created
,
publish_at
,
soft_deadline
,
hard_deadline
,
has_attachment
,
attachment_test_timeout
,
attachment_test_validity
,
validity_script_download
,
attachment_test_full
,
course_id
,
"gradingScheme_id"
,
description
,
max_authors
)
SELECT
'Praktikum 4'
,
'https://lernen.h-da.de/pluginfile.php/344927/mod_resource/content/1/Praktikum4.pdf'
,
'2018-10-02 07:00:29.652859'
,
'2018-10-01 07:00:29.652859'
,
null
,
'2019-07-01 09:00:00.000000'
,
true
,
30
,
'testscripts/validate.py'
,
false
,
''
,
c
.
id
,
null
,
''
,
1
FROM
(
SELECT
id
FROM
opensubmit_course
)
c
;
INSERT
INTO
public
.
opensubmit_assignment
(
title
,
download
,
created
,
publish_at
,
soft_deadline
,
hard_deadline
,
has_attachment
,
attachment_test_timeout
,
attachment_test_validity
,
validity_script_download
,
attachment_test_full
,
course_id
,
"gradingScheme_id"
,
description
,
max_authors
)
SELECT
'Praktikum 5'
,
'https://lernen.h-da.de/pluginfile.php/344935/mod_resource/content/1/Praktikum5.pdf'
,
'2018-10-02 07:00:29.652859'
,
'2018-10-01 07:00:29.652859'
,
null
,
'2019-07-01 09:00:00.000000'
,
true
,
30
,
'testscripts/validate.py'
,
false
,
''
,
c
.
id
,
null
,
''
,
1
FROM
(
SELECT
id
FROM
opensubmit_course
)
c
;
INSERT
INTO
opensubmit_assignment_test_machines
(
assignment_id
,
testmachine_id
)
SELECT
a
.
id
,
t
.
id
FROM
(
SELECT
id
from
opensubmit_assignment
)
a
,
(
SELECT
id
from
opensubmit_testmachine
)
t
;
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment