2
-- PostgreSQL database dump
5
SET statement_timeout = 0;
6
SET client_encoding = 'UTF8';
7
SET standard_conforming_strings = off;
8
SET check_function_bodies = false;
9
SET client_min_messages = warning;
10
SET escape_string_warning = off;
12
SET search_path = public, pg_catalog;
15
-- Name: assessed_assessedid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
18
SELECT pg_catalog.setval('assessed_assessedid_seq', 1, false);
22
-- Name: login_unixid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
25
SELECT pg_catalog.setval('login_unixid_seq', 5003, true);
29
-- Name: login_loginid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
32
SELECT pg_catalog.setval('login_loginid_seq', 4, true);
36
-- Name: offering_offeringid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
39
SELECT pg_catalog.setval('offering_offeringid_seq', 6, true);
43
-- Name: project_extension_extensionid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
46
SELECT pg_catalog.setval('project_extension_extensionid_seq', 1, false);
50
-- Name: project_group_groupid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
53
SELECT pg_catalog.setval('project_group_groupid_seq', 1, true);
57
-- Name: project_projectid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
60
SELECT pg_catalog.setval('project_projectid_seq', 3, true);
64
-- Name: project_set_projectsetid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
67
SELECT pg_catalog.setval('project_set_projectsetid_seq', 2, true);
71
-- Name: project_submission_submissionid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
74
SELECT pg_catalog.setval('project_submission_submissionid_seq', 1, false);
78
-- Name: semester_semesterid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
81
SELECT pg_catalog.setval('semester_semesterid_seq', 4, true);
85
-- Name: subject_subjectid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
88
SELECT pg_catalog.setval('subject_subjectid_seq', 4, true);
92
-- Name: suite_variable_varid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
95
SELECT pg_catalog.setval('suite_variable_varid_seq', 1, false);
99
-- Name: test_case_part_partid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
102
SELECT pg_catalog.setval('test_case_part_partid_seq', 1, false);
106
-- Name: test_case_testid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
109
SELECT pg_catalog.setval('test_case_testid_seq', 1, false);
113
-- Name: test_suite_suiteid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
116
SELECT pg_catalog.setval('test_suite_suiteid_seq', 1, false);
120
-- Name: worksheet_exercise_ws_ex_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
123
SELECT pg_catalog.setval('worksheet_exercise_ws_ex_id_seq', 1, false);
127
-- Name: worksheet_worksheetid_seq; Type: SEQUENCE SET; Schema: public; Owner: -
130
SELECT pg_catalog.setval('worksheet_worksheetid_seq', 1, false);
134
-- Data for Name: login; Type: TABLE DATA; Schema: public; Owner: -
137
SET SESSION AUTHORIZATION DEFAULT;
139
ALTER TABLE login DISABLE TRIGGER ALL;
141
INSERT INTO login (loginid, login, passhash, state, admin, unixid, nick, pass_exp, acct_exp, last_login, svn_pass, email, fullname, studentid, settings) VALUES (1, 'admin', '5f4dcc3b5aa765d61d8327deb882cf99', 'enabled', true, 5000, 'Anne Admin', NULL, NULL, '2009-12-08 11:44:02.285862', 'password', NULL, 'Anne Admin', NULL, NULL);
142
INSERT INTO login (loginid, login, passhash, state, admin, unixid, nick, pass_exp, acct_exp, last_login, svn_pass, email, fullname, studentid, settings) VALUES (2, 'lecturer', '5f4dcc3b5aa765d61d8327deb882cf99', 'enabled', false, 5001, 'Larry Lecturer', NULL, NULL, '2009-12-08 12:12:16.375628', 'password', NULL, 'Larry Lecturer', NULL, NULL);
143
INSERT INTO login (loginid, login, passhash, state, admin, unixid, nick, pass_exp, acct_exp, last_login, svn_pass, email, fullname, studentid, settings) VALUES (3, 'studenta', '5f4dcc3b5aa765d61d8327deb882cf99', 'enabled', false, 5002, 'Alice Student', NULL, NULL, '2009-12-08 12:11:46.349133', 'password', NULL, 'Alice Student', NULL, NULL);
144
INSERT INTO login (loginid, login, passhash, state, admin, unixid, nick, pass_exp, acct_exp, last_login, svn_pass, email, fullname, studentid, settings) VALUES (4, 'studentb', '5f4dcc3b5aa765d61d8327deb882cf99', 'no_agreement', false, 5003, 'Bob Student', NULL, NULL, NULL, NULL, NULL, 'Bob Student', NULL, NULL);
147
ALTER TABLE login ENABLE TRIGGER ALL;
150
-- Data for Name: semester; Type: TABLE DATA; Schema: public; Owner: -
153
ALTER TABLE semester DISABLE TRIGGER ALL;
155
INSERT INTO semester (semesterid, year, semester, state) VALUES (1, '2009', '1', 'past');
156
INSERT INTO semester (semesterid, year, semester, state) VALUES (2, '2009', '2', 'current');
157
INSERT INTO semester (semesterid, year, semester, state) VALUES (3, '2010', '1', 'future');
158
INSERT INTO semester (semesterid, year, semester, state) VALUES (4, '2010', '2', 'future');
161
ALTER TABLE semester ENABLE TRIGGER ALL;
164
-- Data for Name: subject; Type: TABLE DATA; Schema: public; Owner: -
167
ALTER TABLE subject DISABLE TRIGGER ALL;
169
INSERT INTO subject (subjectid, subj_code, subj_name, subj_short_name, url) VALUES (1, '100101', 'Introduction to IVLE', 'ivle-101', 'http://www.ivle.org/example/101');
170
INSERT INTO subject (subjectid, subj_code, subj_name, subj_short_name, url) VALUES (2, '100102', 'Intermediate IVLE', 'ivle-102', 'http://www.ivle.org/example/102');
171
INSERT INTO subject (subjectid, subj_code, subj_name, subj_short_name, url) VALUES (3, '100201', 'Advanced IVLE', 'ivle-201', 'http://www.ivle.org/example/201');
172
INSERT INTO subject (subjectid, subj_code, subj_name, subj_short_name, url) VALUES (4, '100202', 'Mastering IVLE', 'ivle-202', 'http://www.ivle.org/example/202');
175
ALTER TABLE subject ENABLE TRIGGER ALL;
178
-- Data for Name: offering; Type: TABLE DATA; Schema: public; Owner: -
181
ALTER TABLE offering DISABLE TRIGGER ALL;
183
INSERT INTO offering (offeringid, subject, semesterid, groups_student_permissions) VALUES (1, 1, 1, 'none');
184
INSERT INTO offering (offeringid, subject, semesterid, groups_student_permissions) VALUES (2, 2, 2, 'none');
185
INSERT INTO offering (offeringid, subject, semesterid, groups_student_permissions) VALUES (3, 1, 3, 'none');
186
INSERT INTO offering (offeringid, subject, semesterid, groups_student_permissions) VALUES (4, 3, 3, 'none');
187
INSERT INTO offering (offeringid, subject, semesterid, groups_student_permissions) VALUES (5, 2, 4, 'none');
188
INSERT INTO offering (offeringid, subject, semesterid, groups_student_permissions) VALUES (6, 4, 4, 'none');
191
ALTER TABLE offering ENABLE TRIGGER ALL;
194
-- Data for Name: project_set; Type: TABLE DATA; Schema: public; Owner: -
197
ALTER TABLE project_set DISABLE TRIGGER ALL;
199
INSERT INTO project_set (projectsetid, offeringid, max_students_per_group) VALUES (1, 2, NULL);
200
INSERT INTO project_set (projectsetid, offeringid, max_students_per_group) VALUES (2, 2, 3);
203
ALTER TABLE project_set ENABLE TRIGGER ALL;
206
-- Data for Name: project; Type: TABLE DATA; Schema: public; Owner: -
209
ALTER TABLE project DISABLE TRIGGER ALL;
211
INSERT INTO project (projectid, short_name, name, synopsis, url, projectsetid, deadline) VALUES (1, 'phase1', 'Phase 1', 'This is the first project in Intermediate IVLE.', NULL, 1, '2009-08-21 18:00:00');
212
INSERT INTO project (projectid, short_name, name, synopsis, url, projectsetid, deadline) VALUES (2, 'phase2', 'Phase 2', 'This is the second project in Intermediate IVLE.
213
Get into groups of 3.', NULL, 2, '2009-09-11 18:00:00');
214
INSERT INTO project (projectid, short_name, name, synopsis, url, projectsetid, deadline) VALUES (3, 'phase3', 'Phase 3', 'This is the final project in Intermediate IVLE.
215
Complete this with the same group as Phase 2.', NULL, 2, '2009-09-25 18:00:00');
218
ALTER TABLE project ENABLE TRIGGER ALL;
221
-- Data for Name: project_group; Type: TABLE DATA; Schema: public; Owner: -
224
ALTER TABLE project_group DISABLE TRIGGER ALL;
226
INSERT INTO project_group (groupnm, groupid, projectsetid, nick, createdby, epoch) VALUES ('group1', 1, 2, 'group1', 2, '2009-12-08 17:04:42.981005');
229
ALTER TABLE project_group ENABLE TRIGGER ALL;
232
-- Data for Name: assessed; Type: TABLE DATA; Schema: public; Owner: -
235
ALTER TABLE assessed DISABLE TRIGGER ALL;
239
ALTER TABLE assessed ENABLE TRIGGER ALL;
242
-- Data for Name: enrolment; Type: TABLE DATA; Schema: public; Owner: -
245
ALTER TABLE enrolment DISABLE TRIGGER ALL;
247
INSERT INTO enrolment (loginid, offeringid, role, result, special_result, supp_result, special_supp_result, notes, active) VALUES (2, 1, 'lecturer', NULL, NULL, NULL, NULL, NULL, true);
248
INSERT INTO enrolment (loginid, offeringid, role, result, special_result, supp_result, special_supp_result, notes, active) VALUES (2, 2, 'lecturer', NULL, NULL, NULL, NULL, NULL, true);
249
INSERT INTO enrolment (loginid, offeringid, role, result, special_result, supp_result, special_supp_result, notes, active) VALUES (3, 1, 'student', NULL, NULL, NULL, NULL, NULL, true);
250
INSERT INTO enrolment (loginid, offeringid, role, result, special_result, supp_result, special_supp_result, notes, active) VALUES (3, 2, 'student', NULL, NULL, NULL, NULL, NULL, true);
251
INSERT INTO enrolment (loginid, offeringid, role, result, special_result, supp_result, special_supp_result, notes, active) VALUES (4, 2, 'student', NULL, NULL, NULL, NULL, NULL, true);
254
ALTER TABLE enrolment ENABLE TRIGGER ALL;
257
-- Data for Name: exercise; Type: TABLE DATA; Schema: public; Owner: -
260
ALTER TABLE exercise DISABLE TRIGGER ALL;
264
ALTER TABLE exercise ENABLE TRIGGER ALL;
267
-- Data for Name: worksheet; Type: TABLE DATA; Schema: public; Owner: -
270
ALTER TABLE worksheet DISABLE TRIGGER ALL;
274
ALTER TABLE worksheet ENABLE TRIGGER ALL;
277
-- Data for Name: worksheet_exercise; Type: TABLE DATA; Schema: public; Owner: -
280
ALTER TABLE worksheet_exercise DISABLE TRIGGER ALL;
284
ALTER TABLE worksheet_exercise ENABLE TRIGGER ALL;
287
-- Data for Name: exercise_attempt; Type: TABLE DATA; Schema: public; Owner: -
290
ALTER TABLE exercise_attempt DISABLE TRIGGER ALL;
294
ALTER TABLE exercise_attempt ENABLE TRIGGER ALL;
297
-- Data for Name: exercise_save; Type: TABLE DATA; Schema: public; Owner: -
300
ALTER TABLE exercise_save DISABLE TRIGGER ALL;
304
ALTER TABLE exercise_save ENABLE TRIGGER ALL;
307
-- Data for Name: group_invitation; Type: TABLE DATA; Schema: public; Owner: -
310
ALTER TABLE group_invitation DISABLE TRIGGER ALL;
314
ALTER TABLE group_invitation ENABLE TRIGGER ALL;
317
-- Data for Name: group_member; Type: TABLE DATA; Schema: public; Owner: -
320
ALTER TABLE group_member DISABLE TRIGGER ALL;
322
INSERT INTO group_member (loginid, groupid) VALUES (3, 1);
323
INSERT INTO group_member (loginid, groupid) VALUES (4, 1);
326
ALTER TABLE group_member ENABLE TRIGGER ALL;
329
-- Data for Name: project_extension; Type: TABLE DATA; Schema: public; Owner: -
332
ALTER TABLE project_extension DISABLE TRIGGER ALL;
336
ALTER TABLE project_extension ENABLE TRIGGER ALL;
339
-- Data for Name: project_mark; Type: TABLE DATA; Schema: public; Owner: -
342
ALTER TABLE project_mark DISABLE TRIGGER ALL;
346
ALTER TABLE project_mark ENABLE TRIGGER ALL;
349
-- Data for Name: project_submission; Type: TABLE DATA; Schema: public; Owner: -
352
ALTER TABLE project_submission DISABLE TRIGGER ALL;
356
ALTER TABLE project_submission ENABLE TRIGGER ALL;
359
-- Data for Name: test_suite; Type: TABLE DATA; Schema: public; Owner: -
362
ALTER TABLE test_suite DISABLE TRIGGER ALL;
366
ALTER TABLE test_suite ENABLE TRIGGER ALL;
369
-- Data for Name: suite_variable; Type: TABLE DATA; Schema: public; Owner: -
372
ALTER TABLE suite_variable DISABLE TRIGGER ALL;
376
ALTER TABLE suite_variable ENABLE TRIGGER ALL;
379
-- Data for Name: test_case; Type: TABLE DATA; Schema: public; Owner: -
382
ALTER TABLE test_case DISABLE TRIGGER ALL;
386
ALTER TABLE test_case ENABLE TRIGGER ALL;
389
-- Data for Name: test_case_part; Type: TABLE DATA; Schema: public; Owner: -
392
ALTER TABLE test_case_part DISABLE TRIGGER ALL;
396
ALTER TABLE test_case_part ENABLE TRIGGER ALL;
399
-- PostgreSQL database dump complete