CMMC-Audit/migrations/0007_backfillrun_alter_auditevent_source.py
2026-05-27 15:47:47 -06:00

33 lines
1.4 KiB
Python

# Generated by Django 5.2.14 on 2026-05-20 23:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('carc_audit', '0006_add_cmmc_evidence_fields'),
]
operations = [
migrations.CreateModel(
name='BackfillRun',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=128, unique=True)),
('started', models.DateTimeField(auto_now_add=True)),
('completed', models.DateTimeField(blank=True, null=True)),
('created_events', models.PositiveIntegerField(default=0)),
('dry_run', models.BooleanField(default=False)),
('notes', models.TextField(blank=True)),
],
options={
'ordering': ['-started'],
},
),
migrations.AlterField(
model_name='auditevent',
name='source',
field=models.CharField(choices=[('runtime', 'Runtime'), ('django_admin', 'Django admin'), ('coldfront_signal', 'ColdFront signal'), ('coldfront_workflow', 'ColdFront workflow'), ('reconstructed_django_admin_log', 'Reconstructed Django admin log'), ('django_admin_log', 'Django admin log'), ('coldfront_history', 'ColdFront history')], default='runtime', max_length=64),
),
]