0001_initial.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. (
  15. "id",
  16. models.BigAutoField(
  17. auto_created=True,
  18. primary_key=True,
  19. serialize=False,
  20. verbose_name="ID",
  21. ),
  22. ),
  23. ("created", models.DateTimeField(auto_now_add=True, db_index=True)),
  24. ("name", models.TextField()),
  25. ("data", models.JSONField(blank=True, null=True)),
  26. (
  27. "file",
  28. models.ForeignKey(
  29. on_delete=django.db.models.deletion.CASCADE, to="files.file"
  30. ),
  31. ),
  32. (
  33. "project",
  34. models.ForeignKey(
  35. on_delete=django.db.models.deletion.CASCADE,
  36. to="projects.project",
  37. ),
  38. ),
  39. ],
  40. ),
  41. migrations.AddIndex(
  42. model_name="debuginformationfile",
  43. index=models.Index(
  44. fields=["project", "file"], name="difs_debugi_project_99cec2_idx"
  45. ),
  46. ),
  47. ]