mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Add 'stubbed' column to broadcast_message table
This is a boolean column. It will be set to True for broadcasts created from training broadcast accounts. This will help us debug, for example by excluding all the stubbed broadcasts when we have some trouble with real broadcasts.
This commit is contained in:
25
migrations/versions/0340_stub_training_broadcasts.py
Normal file
25
migrations/versions/0340_stub_training_broadcasts.py
Normal file
@@ -0,0 +1,25 @@
|
||||
"""
|
||||
|
||||
Revision ID: 0340_stub_training_broadcasts
|
||||
Revises: 0339_service_billing_details
|
||||
Create Date: 2021-01-26 16:48:44.921065
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
revision = '0340_stub_training_broadcasts'
|
||||
down_revision = '0339_service_billing_details'
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('broadcast_message', sa.Column('stubbed', sa.Boolean(), nullable=True))
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('broadcast_message', 'stubbed')
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user