Skip to content

Commit

Permalink
upd migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlo-mk committed Dec 16, 2024
1 parent bea82a1 commit 9d6cc59
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
23 changes: 23 additions & 0 deletions src/hct_mis_api/apps/household/migrations/0005_migration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 3.2.25 on 2024-12-16 11:50

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('household', '0004_migration'),
]

operations = [
migrations.AlterField(
model_name='household',
name='internal_data',
field=models.JSONField(blank=True, default=dict),
),
migrations.AlterField(
model_name='individual',
name='internal_data',
field=models.JSONField(blank=True, default=dict),
),
]
2 changes: 1 addition & 1 deletion src/hct_mis_api/apps/utils/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def purge(cls) -> None:


class InternalDataFieldModel(models.Model):
internal_data = models.JSONField(default=dict)
internal_data = models.JSONField(default=dict, blank=True)

class Meta:
abstract = True
3 changes: 3 additions & 0 deletions src/hct_mis_api/migrations_script/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,16 @@ def apply_migrations():
("program", "0002_migration"),
("household", "0003_migration"),
("household", "0004_migration"),
("household", "0005_migration"),
("grievance", "0004_migration"),
("payment", "0002_migration"),
("payment", "0003_migration"),
("payment", "0004_migration"),
("payment", "0005_migration"),
("payment", "0006_migration"),
("payment", "0007_migration"),
("payment", "0008_migration"),
("payment", "0009_migration"),
("aurora", "0003_migration"),
]
fake_migrations(excluded_migrations)
Expand Down

0 comments on commit 9d6cc59

Please sign in to comment.