Skip to content

Commit

Permalink
refactor: squashed migrations
Browse files Browse the repository at this point in the history
- Delete all migrations
- Run again makemigrations
- Test in secure environment
  • Loading branch information
leoaulasneo98 committed Feb 21, 2025
1 parent 731ce57 commit 527d0c2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 100 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.17 on 2025-01-22 17:29
# Generated by Django 4.2.17 on 2025-02-21 13:18

from django.db import migrations, models
import django.db.models.deletion
Expand All @@ -13,24 +13,27 @@ class Migration(migrations.Migration):

operations = [
migrations.CreateModel(
name='SubmissionQueueRecord',
name='ExternalGraderDetail',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('queue_name', models.CharField(max_length=128)),
('grader_file_name', models.CharField(default='', max_length=128)),
('points_possible', models.PositiveIntegerField(default=1)),
('status', models.CharField(choices=[('pending', 'Pending'), ('pulled', 'Pulled'),
('retired', 'Retired'), ('failed', 'Failed')],
default='pending', max_length=20)),
('retired', 'Retired'), ('failed', 'Failed')], default='pending',
max_length=20)),
('pullkey', models.CharField(blank=True, max_length=128, null=True)),
('grader_reply', models.TextField(blank=True, null=True)),
('status_time', models.DateTimeField(db_index=True, default=django.utils.timezone.now)),
('created_at', models.DateTimeField(db_index=True, default=django.utils.timezone.now)),
('num_failures', models.PositiveIntegerField(default=0)),
('submission', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE,
related_name='queue_record',
to='submissions.submission')),
related_name='queue_record', to='submissions.submission')),
],
options={
'ordering': ['-created_at'],
'indexes': [models.Index(fields=['queue_name', 'status', 'status_time'],
name='submissions_queue_n_05eba7_idx')],
name='submissions_queue_n_fbabd8_idx')],
},
),
]

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 527d0c2

Please sign in to comment.