You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1019 B

3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
  1. # Generated by Django 3.2.8 on 2021-11-24 05:06
  2. import django.db.models.expressions
  3. from django.db import migrations, models
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ("api", "0018_alter_label_background_color"),
  7. ]
  8. operations = [
  9. migrations.AlterUniqueTogether(
  10. name="span",
  11. unique_together=set(),
  12. ),
  13. migrations.AddConstraint(
  14. model_name="span",
  15. constraint=models.CheckConstraint(check=models.Q(("start_offset__gte", 0)), name="startOffset >= 0"),
  16. ),
  17. migrations.AddConstraint(
  18. model_name="span",
  19. constraint=models.CheckConstraint(check=models.Q(("end_offset__gte", 0)), name="endOffset >= 0"),
  20. ),
  21. migrations.AddConstraint(
  22. model_name="span",
  23. constraint=models.CheckConstraint(
  24. check=models.Q(("start_offset__lt", django.db.models.expressions.F("end_offset"))), name="start < end"
  25. ),
  26. ),
  27. ]