From f49d754426857c0f333e559ca9230fb877e2c038 Mon Sep 17 00:00:00 2001 From: Rebecca Hsieh Date: Wed, 12 Jun 2024 15:16:40 -0700 Subject: [PATCH] Update migration --- .../0101_domain_dsdata_last_change.py | 18 ++++++++++++++++++ src/registrar/models/domain.py | 10 +++++----- 2 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 src/registrar/migrations/0101_domain_dsdata_last_change.py diff --git a/src/registrar/migrations/0101_domain_dsdata_last_change.py b/src/registrar/migrations/0101_domain_dsdata_last_change.py new file mode 100644 index 000000000..719dfb5ca --- /dev/null +++ b/src/registrar/migrations/0101_domain_dsdata_last_change.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.10 on 2024-06-12 21:43 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("registrar", "0100_domainrequest_action_needed_reason"), + ] + + operations = [ + migrations.AddField( + model_name="domain", + name="dsdata_last_change", + field=models.TextField(blank=True, help_text="Most recent time that ds data was updated", null=True), + ), + ] diff --git a/src/registrar/models/domain.py b/src/registrar/models/domain.py index ebd1b39e5..7c10d66f2 100644 --- a/src/registrar/models/domain.py +++ b/src/registrar/models/domain.py @@ -1074,11 +1074,11 @@ class Domain(TimeStampedModel, DomainHelper): verbose_name="first ready on", ) - # dsdata_last_change = TextField( - # null=True, - # blank=True, - # help_text="Most recent time that ds data was updated", - # ) + dsdata_last_change = TextField( + null=True, + blank=True, + help_text="Most recent time that ds data was updated", + ) def isActive(self): return self.state == Domain.State.CREATED