update sync data from site dashboard and testing closing cycles
This commit is contained in:
1 parent
36639d8c38
commit
f49e72592c
42 files changed
+1966
-688
No files matched your search
@@ -0,0 +1,45 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("farms", "0019_site_id_slug"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="kandang",
|
||||
name="source_kandang_id",
|
||||
field=models.BigIntegerField(
|
||||
blank=True,
|
||||
help_text="kandang_id on the farm-location dashboard-cpsp deployment",
|
||||
null=True,
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="flock",
|
||||
name="source_flock_id",
|
||||
field=models.BigIntegerField(
|
||||
blank=True,
|
||||
help_text="flock_id on the farm-location dashboard-cpsp deployment",
|
||||
null=True,
|
||||
),
|
||||
),
|
||||
migrations.AddConstraint(
|
||||
model_name="kandang",
|
||||
constraint=models.UniqueConstraint(
|
||||
condition=models.Q(("source_kandang_id__isnull", False)),
|
||||
fields=("site", "source_kandang_id"),
|
||||
name="uniq_kandang_site_source",
|
||||
),
|
||||
),
|
||||
migrations.AddConstraint(
|
||||
model_name="flock",
|
||||
constraint=models.UniqueConstraint(
|
||||
condition=models.Q(("source_flock_id__isnull", False)),
|
||||
fields=("kandang", "source_flock_id"),
|
||||
name="uniq_flock_kandang_source",
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in new issue
Block a user