4
SET statement_timeout = 0;
5
SET client_encoding = 'UTF8';
6
SET standard_conforming_strings = off;
7
SET check_function_bodies = false;
8
SET client_min_messages = warning;
9
SET escape_string_warning = off;
11
SET search_path = public, pg_catalog;
16
SELECT pg_catalog.setval('assessed_assessedid_seq', 1, false);
22
SELECT pg_catalog.setval('login_unixid_seq', 5004, true);
28
SELECT pg_catalog.setval('login_loginid_seq', 5, true);
34
SELECT pg_catalog.setval('offering_offeringid_seq', 6, true);
40
SELECT pg_catalog.setval('project_extension_extensionid_seq', 1, false);
46
SELECT pg_catalog.setval('project_group_groupid_seq', 1, true);
52
SELECT pg_catalog.setval('project_projectid_seq', 3, true);
58
SELECT pg_catalog.setval('project_set_projectsetid_seq', 2, true);
64
SELECT pg_catalog.setval('project_submission_submissionid_seq', 1, false);
70
SELECT pg_catalog.setval('semester_semesterid_seq', 4, true);
76
SELECT pg_catalog.setval('subject_subjectid_seq', 4, true);
82
SELECT pg_catalog.setval('suite_variable_varid_seq', 1, false);
88
SELECT pg_catalog.setval('test_case_part_partid_seq', 1, false);
94
SELECT pg_catalog.setval('test_case_testid_seq', 1, false);
100
SELECT pg_catalog.setval('test_suite_suiteid_seq', 1, false);
106
SELECT pg_catalog.setval('worksheet_exercise_ws_ex_id_seq', 1, false);
112
SELECT pg_catalog.setval('worksheet_worksheetid_seq', 1, false);
118
SET SESSION AUTHORIZATION DEFAULT;
120
ALTER TABLE login DISABLE TRIGGER ALL;
122
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);
123
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);
124
INSERT INTO login (loginid, login, passhash, state, admin, unixid, nick, pass_exp, acct_exp, last_login, svn_pass, email, fullname, studentid, settings) VALUES (3, 'tutor', '5f4dcc3b5aa765d61d8327deb882cf99', 'enabled', false, 5002, 'Terry Tutor', NULL, NULL, '2009-12-08 19:08:59.817505', 'password', NULL, 'Terry Tutor', NULL, NULL);
125
INSERT INTO login (loginid, login, passhash, state, admin, unixid, nick, pass_exp, acct_exp, last_login, svn_pass, email, fullname, studentid, settings) VALUES (4, 'studenta', '5f4dcc3b5aa765d61d8327deb882cf99', 'enabled', false, 5003, 'Alice Student', NULL, NULL, '2009-12-08 12:11:46.349133', 'password', NULL, 'Alice Student', NULL, NULL);
126
INSERT INTO login (loginid, login, passhash, state, admin, unixid, nick, pass_exp, acct_exp, last_login, svn_pass, email, fullname, studentid, settings) VALUES (5, 'studentb', '5f4dcc3b5aa765d61d8327deb882cf99', 'no_agreement', false, 5004, 'Bob Student', NULL, NULL, NULL, NULL, NULL, 'Bob Student', NULL, NULL);
129
ALTER TABLE login ENABLE TRIGGER ALL;
134
ALTER TABLE semester DISABLE TRIGGER ALL;
136
INSERT INTO semester (semesterid, year, semester, state) VALUES (1, '2009', '1', 'past');
137
INSERT INTO semester (semesterid, year, semester, state) VALUES (2, '2009', '2', 'current');
138
INSERT INTO semester (semesterid, year, semester, state) VALUES (3, '2010', '1', 'future');
139
INSERT INTO semester (semesterid, year, semester, state) VALUES (4, '2010', '2', 'future');
142
ALTER TABLE semester ENABLE TRIGGER ALL;
147
ALTER TABLE subject DISABLE TRIGGER ALL;
149
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');
150
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');
151
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');
152
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');
155
ALTER TABLE subject ENABLE TRIGGER ALL;
160
ALTER TABLE offering DISABLE TRIGGER ALL;
162
INSERT INTO offering (offeringid, subject, semesterid, groups_student_permissions) VALUES (1, 1, 1, 'none');
163
INSERT INTO offering (offeringid, subject, semesterid, groups_student_permissions) VALUES (2, 2, 2, 'none');
164
INSERT INTO offering (offeringid, subject, semesterid, groups_student_permissions) VALUES (3, 1, 3, 'none');
165
INSERT INTO offering (offeringid, subject, semesterid, groups_student_permissions) VALUES (4, 3, 3, 'none');
166
INSERT INTO offering (offeringid, subject, semesterid, groups_student_permissions) VALUES (5, 2, 4, 'none');
167
INSERT INTO offering (offeringid, subject, semesterid, groups_student_permissions) VALUES (6, 4, 4, 'none');
170
ALTER TABLE offering ENABLE TRIGGER ALL;
175
ALTER TABLE project_set DISABLE TRIGGER ALL;
177
INSERT INTO project_set (projectsetid, offeringid, max_students_per_group) VALUES (1, 2, NULL);
178
INSERT INTO project_set (projectsetid, offeringid, max_students_per_group) VALUES (2, 2, 3);
181
ALTER TABLE project_set ENABLE TRIGGER ALL;
186
ALTER TABLE project DISABLE TRIGGER ALL;
188
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');
189
INSERT INTO project (projectid, short_name, name, synopsis, url, projectsetid, deadline) VALUES (2, 'phase2', 'Phase 2', 'This is the second project in Intermediate IVLE.
190
Get into groups of 3.', NULL, 2, '2009-09-11 18:00:00');
191
INSERT INTO project (projectid, short_name, name, synopsis, url, projectsetid, deadline) VALUES (3, 'phase3', 'Phase 3', 'This is the final project in Intermediate IVLE.
192
Complete this with the same group as Phase 2.', NULL, 2, '2009-09-25 18:00:00');
195
ALTER TABLE project ENABLE TRIGGER ALL;
200
ALTER TABLE project_group DISABLE TRIGGER ALL;
202
INSERT INTO project_group (groupnm, groupid, projectsetid, nick, createdby, epoch) VALUES ('group1', 1, 2, 'group1', 2, '2009-12-08 17:04:42.981005');
205
ALTER TABLE project_group ENABLE TRIGGER ALL;
210
ALTER TABLE assessed DISABLE TRIGGER ALL;
214
ALTER TABLE assessed ENABLE TRIGGER ALL;
219
ALTER TABLE enrolment DISABLE TRIGGER ALL;
221
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);
222
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);
223
INSERT INTO enrolment (loginid, offeringid, role, result, special_result, supp_result, special_supp_result, notes, active) VALUES (3, 2, 'tutor', NULL, NULL, NULL, NULL, NULL, true);
224
INSERT INTO enrolment (loginid, offeringid, role, result, special_result, supp_result, special_supp_result, notes, active) VALUES (4, 1, 'student', NULL, NULL, NULL, NULL, NULL, true);
225
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);
226
INSERT INTO enrolment (loginid, offeringid, role, result, special_result, supp_result, special_supp_result, notes, active) VALUES (5, 2, 'student', NULL, NULL, NULL, NULL, NULL, true);
229
ALTER TABLE enrolment ENABLE TRIGGER ALL;
234
ALTER TABLE exercise DISABLE TRIGGER ALL;
238
ALTER TABLE exercise ENABLE TRIGGER ALL;
243
ALTER TABLE worksheet DISABLE TRIGGER ALL;
247
ALTER TABLE worksheet ENABLE TRIGGER ALL;
252
ALTER TABLE worksheet_exercise DISABLE TRIGGER ALL;
256
ALTER TABLE worksheet_exercise ENABLE TRIGGER ALL;
261
ALTER TABLE exercise_attempt DISABLE TRIGGER ALL;
265
ALTER TABLE exercise_attempt ENABLE TRIGGER ALL;
270
ALTER TABLE exercise_save DISABLE TRIGGER ALL;
274
ALTER TABLE exercise_save ENABLE TRIGGER ALL;
279
ALTER TABLE group_invitation DISABLE TRIGGER ALL;
283
ALTER TABLE group_invitation ENABLE TRIGGER ALL;
288
ALTER TABLE group_member DISABLE TRIGGER ALL;
290
INSERT INTO group_member (loginid, groupid) VALUES (4, 1);
291
INSERT INTO group_member (loginid, groupid) VALUES (5, 1);
294
ALTER TABLE group_member ENABLE TRIGGER ALL;
299
ALTER TABLE project_extension DISABLE TRIGGER ALL;
303
ALTER TABLE project_extension ENABLE TRIGGER ALL;
308
ALTER TABLE project_mark DISABLE TRIGGER ALL;
312
ALTER TABLE project_mark ENABLE TRIGGER ALL;
317
ALTER TABLE project_submission DISABLE TRIGGER ALL;
321
ALTER TABLE project_submission ENABLE TRIGGER ALL;
326
ALTER TABLE test_suite DISABLE TRIGGER ALL;
330
ALTER TABLE test_suite ENABLE TRIGGER ALL;
335
ALTER TABLE suite_variable DISABLE TRIGGER ALL;
339
ALTER TABLE suite_variable ENABLE TRIGGER ALL;
344
ALTER TABLE test_case DISABLE TRIGGER ALL;
348
ALTER TABLE test_case ENABLE TRIGGER ALL;
353
ALTER TABLE test_case_part DISABLE TRIGGER ALL;
357
ALTER TABLE test_case_part ENABLE TRIGGER ALL;