Commit caf4768f authored by Richard's avatar Richard
Browse files
parents 9eb91bbe 1b4265e5
......@@ -46,6 +46,7 @@ alter table assessments
drop table if exists courseInfo;
create table courseInfo (
course_id int AUTO_INCREMENT,
......@@ -64,3 +65,19 @@ alter table courseOfferings
drop column code_module,
drop column code_presentation,
rename column module_presentation_length to course_offering_length_in_days;
alter table assessments
rename column assessment_type to assessment_type_o,
add column assessment_type ENUM("TMA", "Exam", "CMA");
update assessments
set assessment_type = assessment_type_o
where 1;
alter table assessments
drop column assessment_type_o;
-- alter table studentInfo
-- drop column imd_band_o;
\ No newline at end of file
......@@ -9,7 +9,7 @@ cursor.execute("SELECT * FROM studentInfo;")
c = cursor.fetchall()
for row in c:
d = row[9]
d = row[2]
if d == "" or d is None:
d = -1
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment