Skip to content

Commit

Permalink
Django test migration update
Browse files Browse the repository at this point in the history
  • Loading branch information
thenav56 committed May 23, 2023
1 parent 863eb59 commit 5f8c32f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions django/apps/existing_database/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ class Migration(migrations.Migration):
("required_count", models.IntegerField(blank=True, null=True)),
("progress", models.IntegerField(blank=True, null=True)),
("project_type_specifics", models.TextField(blank=True, null=True)),
("total_area", models.FloatField(blank=True, null=True, default=None)),
(
"time_spent_max_allowed",
models.FloatField(blank=True, null=True, default=None),
),
],
options={
"db_table": "groups",
Expand Down
7 changes: 4 additions & 3 deletions django/apps/existing_database/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,10 @@ class Group(Model):
required_count = models.IntegerField(blank=True, null=True)
progress = models.IntegerField(blank=True, null=True)
# Database uses JSON instead of JSONB (not supported by django)
project_type_specifics = models.TextField(blank=True, null=True)
total_area = models.FloatField(blank=True, null=True)
time_spent_max_allowed = models.FloatField(blank=True, null=True)
project_type_specifics = models.TextField(blank=True, null=True, default=None)
# Used by aggreagated module
total_area = models.FloatField(blank=True, null=True, default=None)
time_spent_max_allowed = models.FloatField(blank=True, null=True, default=None)

# Django derived fields from ForeignKey
project_id: str
Expand Down

0 comments on commit 5f8c32f

Please # to comment.