fix: convert graded field to boolean
This commit is contained in:
parent
c495970020
commit
24ee63ee0e
1
changelog.d/20230911_180425_regis_fix_graded.md
Normal file
1
changelog.d/20230911_180425_regis_fix_graded.md
Normal file
@ -0,0 +1 @@
|
||||
- 💥[Improvement] Convert the `course_blocks.graded` field from String to Boolean. (by @regisb)
|
||||
@ -1,2 +1,2 @@
|
||||
ALTER TABLE course_blocks
|
||||
ADD COLUMN graded String DEFAULT 'false';
|
||||
ADD COLUMN graded String DEFAULT 'false';
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
ALTER TABLE course_blocks
|
||||
MODIFY COLUMN graded Boolean DEFAULT false;
|
||||
@ -42,7 +42,7 @@ def import_course(course_key):
|
||||
print("======================", course_id, course.display_name)
|
||||
values = [
|
||||
sql_format(
|
||||
"('{}', '{}', '{}', '{}', '{}', '{}', '{}')",
|
||||
"('{}', '{}', '{}', '{}', '{}', '{}', {})",
|
||||
course_id,
|
||||
str(child.location),
|
||||
child.location.block_id,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user