0001_initial.py 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. # Generated by Django 3.2.7 on 2021-10-11 15:04
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. initial = True
  6. dependencies = [
  7. ('files', '0004_auto_20210509_1658'),
  8. ('projects', '0008_alter_projectkey_created'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='DebugInformationFile',
  13. fields=[
  14. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  15. ('created', models.DateTimeField(auto_now_add=True, db_index=True)),
  16. ('name', models.TextField()),
  17. ('data', models.JSONField(blank=True, null=True)),
  18. ('file', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='files.file')),
  19. ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='projects.project')),
  20. ],
  21. ),
  22. migrations.AddIndex(
  23. model_name='debuginformationfile',
  24. index=models.Index(fields=['project', 'file'], name='difs_debugi_project_99cec2_idx'),
  25. ),
  26. ]