Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
6584f811
Commit
6584f811
authored
5 years ago
by
Feanil Patel
Browse files
Options
Downloads
Patches
Plain Diff
Fix type mismatches in the course_groups migration.
Mixing byte and unicode strings causes migrations to fail.
parent
3d51bc7b
No related branches found
Branches containing commit
Tags
release-2018-06-01-10.30
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openedx/core/djangoapps/course_groups/migrations/0001_initial.py
+9
-9
9 additions, 9 deletions
.../core/djangoapps/course_groups/migrations/0001_initial.py
with
9 additions
and
9 deletions
openedx/core/djangoapps/course_groups/migrations/0001_initial.py
+
9
−
9
View file @
6584f811
...
...
@@ -24,7 +24,7 @@ class Migration(migrations.Migration):
name
=
'
CourseCohort
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
verbose_name
=
'
ID
'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'
assignment_type
'
,
models
.
CharField
(
default
=
b
'
manual
'
,
max_length
=
20
,
choices
=
[(
b
'
random
'
,
b
'
Random
'
),
(
b
'
manual
'
,
b
'
Manual
'
)])),
(
'
assignment_type
'
,
models
.
CharField
(
default
=
'
manual
'
,
max_length
=
20
,
choices
=
[(
'
random
'
,
'
Random
'
),
(
'
manual
'
,
'
Manual
'
)])),
],
),
migrations
.
CreateModel
(
...
...
@@ -32,8 +32,8 @@ class Migration(migrations.Migration):
fields
=
[
(
'
id
'
,
models
.
AutoField
(
verbose_name
=
'
ID
'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'
is_cohorted
'
,
models
.
BooleanField
(
default
=
False
)),
(
'
course_id
'
,
CourseKeyField
(
help_text
=
b
'
Which course are these settings associated with?
'
,
unique
=
True
,
max_length
=
255
,
db_index
=
True
)),
(
'
_cohorted_discussions
'
,
models
.
TextField
(
null
=
True
,
db_column
=
b
'
cohorted_discussions
'
,
blank
=
True
)),
(
'
course_id
'
,
CourseKeyField
(
help_text
=
'
Which course are these settings associated with?
'
,
unique
=
True
,
max_length
=
255
,
db_index
=
True
)),
(
'
_cohorted_discussions
'
,
models
.
TextField
(
null
=
True
,
db_column
=
'
cohorted_discussions
'
,
blank
=
True
)),
(
'
always_cohort_inline_discussions
'
,
models
.
BooleanField
(
default
=
True
)),
],
),
...
...
@@ -41,18 +41,18 @@ class Migration(migrations.Migration):
name
=
'
CourseUserGroup
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
verbose_name
=
'
ID
'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'
name
'
,
models
.
CharField
(
help_text
=
b
'
What is the name of this group? Must be unique within a course.
'
,
max_length
=
255
)),
(
'
course_id
'
,
CourseKeyField
(
help_text
=
b
'
Which course is this group associated with?
'
,
max_length
=
255
,
db_index
=
True
)),
(
'
group_type
'
,
models
.
CharField
(
max_length
=
20
,
choices
=
[(
b
'
cohort
'
,
b
'
Cohort
'
)])),
(
'
users
'
,
models
.
ManyToManyField
(
help_text
=
b
'
Who is in this group?
'
,
related_name
=
'
course_groups
'
,
to
=
settings
.
AUTH_USER_MODEL
,
db_index
=
True
)),
(
'
name
'
,
models
.
CharField
(
help_text
=
'
What is the name of this group? Must be unique within a course.
'
,
max_length
=
255
)),
(
'
course_id
'
,
CourseKeyField
(
help_text
=
'
Which course is this group associated with?
'
,
max_length
=
255
,
db_index
=
True
)),
(
'
group_type
'
,
models
.
CharField
(
max_length
=
20
,
choices
=
[(
'
cohort
'
,
'
Cohort
'
)])),
(
'
users
'
,
models
.
ManyToManyField
(
help_text
=
'
Who is in this group?
'
,
related_name
=
'
course_groups
'
,
to
=
settings
.
AUTH_USER_MODEL
,
db_index
=
True
)),
],
),
migrations
.
CreateModel
(
name
=
'
CourseUserGroupPartitionGroup
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
verbose_name
=
'
ID
'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'
partition_id
'
,
models
.
IntegerField
(
help_text
=
b
'
contains the id of a cohorted partition in this course
'
)),
(
'
group_id
'
,
models
.
IntegerField
(
help_text
=
b
'
contains the id of a specific group within the cohorted partition
'
)),
(
'
partition_id
'
,
models
.
IntegerField
(
help_text
=
'
contains the id of a cohorted partition in this course
'
)),
(
'
group_id
'
,
models
.
IntegerField
(
help_text
=
'
contains the id of a specific group within the cohorted partition
'
)),
(
'
created_at
'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'
updated_at
'
,
models
.
DateTimeField
(
auto_now
=
True
)),
(
'
course_user_group
'
,
models
.
OneToOneField
(
to
=
'
course_groups.CourseUserGroup
'
,
on_delete
=
models
.
CASCADE
)),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment