Skip to content

Commit

Permalink
#2013 - Add callback_url field to Notification table (#2028)
Browse files Browse the repository at this point in the history
  • Loading branch information
MackHalliday authored Oct 2, 2024
1 parent f0d151d commit fcb8e48
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 19 additions & 0 deletions migrations/versions/0370_notification_callback_url.py
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit fcb8e48

Please sign in to comment.