diff --git a/app/models.py b/app/models.py index fe2fd499f8..06cbaf7c66 100644 --- a/app/models.py +++ b/app/models.py @@ -1365,6 +1365,8 @@ class Notification(db.Model): postage = db.Column(db.String, nullable=True) billing_code = db.Column(db.String(256), nullable=True) + callback_url = db.Column(db.String(255), nullable=True) + CheckConstraint( """ CASE WHEN notification_type = 'letter' THEN diff --git a/migrations/versions/0370_notification_callback_url.py b/migrations/versions/0370_notification_callback_url.py new file mode 100644 index 0000000000..b6d4ddeffa --- /dev/null +++ b/migrations/versions/0370_notification_callback_url.py @@ -0,0 +1,19 @@ +""" +Revision ID: 0370_notification_callback_url +Revises: 0369a_va_profile_cache_fields +Create Date: 2024-10-01 19:12:54.511134 +""" + +from alembic import op +import sqlalchemy as sa + +revision = '0370_notification_callback_url' +down_revision = '0369a_va_profile_cache_fields' + + +def upgrade(): + op.add_column('notifications', sa.Column('callback_url', sa.String(length=255), nullable=True)) + + +def downgrade(): + op.drop_column('notifications', 'callback_url')