Skip to content

Commit

Permalink
fix: conflicting migrations, add timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
rikuke committed Oct 13, 2023
1 parent e7f9b8e commit 07dcacb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
# Generated by Django 3.2.18 on 2023-09-29 09:16
# Generated by Django 3.2.18 on 2023-10-13 12:38

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('applications', '0040_pay_subsidy_types'),
('applications', '0041_add_paper_application_date'),
]

operations = [
migrations.CreateModel(
name='AhjoSetting',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True, verbose_name='time created')),
('modified_at', models.DateTimeField(auto_now=True, verbose_name='time modified')),
('name', models.CharField(max_length=255, unique=True)),
('data', models.JSONField()),
],
options={
'abstract': False,
},
),
]
2 changes: 1 addition & 1 deletion backend/benefit/applications/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,6 +877,6 @@ class ReviewState(models.Model):
approval = models.BooleanField(default=False, verbose_name=_("approval"))


class AhjoSetting(models.Model):
class AhjoSetting(TimeStampedModel):
name = models.CharField(max_length=255, unique=True)
data = JSONField()

0 comments on commit 07dcacb

Please sign in to comment.