mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-10 07:12:20 -05:00
Purge broadcast data
To avoid problems after changing data type for areas column from array to dictionary.
This commit is contained in:
24
migrations/versions/0329_purge_broadcast_data.py
Normal file
24
migrations/versions/0329_purge_broadcast_data.py
Normal file
@@ -0,0 +1,24 @@
|
||||
"""
|
||||
|
||||
Revision ID: 0329_purge_broadcast_data
|
||||
Revises: 0328_international_letters_perm
|
||||
Create Date: 2020-09-07 16:00:27.545673
|
||||
|
||||
"""
|
||||
from alembic import op
|
||||
|
||||
|
||||
revision = '0329_purge_broadcast_data'
|
||||
down_revision = '0328_international_letters_perm'
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.execute("TRUNCATE broadcast_event, broadcast_message;")
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
pass
|
||||
# ### end Alembic commands ###
|
||||
Reference in New Issue
Block a user