Commit b77514fc authored by Stefan Vercillo's avatar Stefan Vercillo
Browse files

update script4

parent 06a2285d
......@@ -46,6 +46,7 @@ alter table assessments
drop table if exists courseInfo;
create table courseInfo (
course_id int AUTO_INCREMENT,
......@@ -69,7 +70,6 @@ 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;
......@@ -77,3 +77,7 @@ update assessments
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