Skip to content

Commit

Permalink
fix: existing migrations.
Browse files Browse the repository at this point in the history
  • Loading branch information
qasimgulzar committed Nov 18, 2024
1 parent 0ea6ba9 commit d8b974c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lms/djangoapps/courseware/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Migration(migrations.Migration):
migrations.CreateModel(
name='StudentModule',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('id', models.BigAutoField(primary_key=True, serialize=False, verbose_name='ID')),
('module_type', models.CharField(default='problem', max_length=32, db_index=True, choices=[('problem', 'problem'), ('video', 'video'), ('html', 'html'), ('course', 'course'), ('chapter', 'Section'), ('sequential', 'Subsection'), ('library_content', 'Library Content')])),
('module_state_key', UsageKeyField(max_length=255, db_column='module_id', db_index=True)),
('course_id', CourseKeyField(max_length=255, db_index=True)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RunPython(move_overrides_to_edx_when)
migrations.RunPython(move_overrides_to_edx_when, reverse_code=migrations.RunPython.noop)
]
2 changes: 1 addition & 1 deletion lms/djangoapps/courseware/migrations/0011_csm_id_bigint.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ class Migration(migrations.Migration):
CsmBigInt(
model_name='studentmodule',
name='id',
field=models.BigAutoField(primary_key=True),
field=models.BigAutoField(primary_key=True, serialize=False, verbose_name='ID'),
)
]
2 changes: 1 addition & 1 deletion lms/djangoapps/courseware/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class StudentModule(models.Model):
"""
objects = ChunkingManager()

id = models.BigAutoField(primary_key=True) # pylint: disable=invalid-name
id = models.BigAutoField(verbose_name='ID', primary_key=True) # pylint: disable=invalid-name

## The XBlock/XModule type (e.g. "problem")
module_type = models.CharField(max_length=32, db_index=True)
Expand Down
2 changes: 1 addition & 1 deletion lms/djangoapps/grades/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Migration(migrations.Migration):
fields=[
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, verbose_name='created', editable=False)),
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, verbose_name='modified', editable=False)),
('id', models.BigAutoField(primary_key=True)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('user_id', models.IntegerField()),
('course_id', CourseKeyField(max_length=255)),
('usage_key', UsageKeyField(max_length=255)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Migration(migrations.Migration):
fields=[
('created', model_utils.fields.AutoCreatedField(default=django.utils.timezone.now, verbose_name='created', editable=False)),
('modified', model_utils.fields.AutoLastModifiedField(default=django.utils.timezone.now, verbose_name='modified', editable=False)),
('id', models.BigAutoField(primary_key=True)),
('id', models.BigAutoField(primary_key=True, serialize=False)),
('user_id', models.IntegerField(db_index=True)),
('course_id', CourseKeyField(max_length=255)),
('course_edited_timestamp', models.DateTimeField(verbose_name='Last content edit timestamp')),
Expand Down

0 comments on commit d8b974c

Please sign in to comment.