Files
notifications-api/migrations/versions/0376_add_provider_response.py

32 lines
864 B
Python
Raw Normal View History

2022-09-15 14:59:13 -07:00
"""empty message
Revision ID: 0376_add_provider_response
Revises: 0375_fix_service_name
Create Date: 2022-09-14 11:04:15.888017
"""
# revision identifiers, used by Alembic.
from datetime import datetime
2023-08-29 14:54:30 -07:00
revision = "0376_add_provider_response"
down_revision = "0375_fix_service_name"
2022-09-15 14:59:13 -07:00
import sqlalchemy as sa
from alembic import op
2022-09-15 14:59:13 -07:00
def upgrade():
### commands auto generated by Alembic - please adjust! ###
2023-08-29 14:54:30 -07:00
op.add_column(
"notifications", sa.Column("provider_response", sa.Text(), nullable=True)
)
op.add_column("notifications", sa.Column("queue_name", sa.Text(), nullable=True))
2022-09-15 14:59:13 -07:00
### end Alembic commands ###
def downgrade():
### commands auto generated by Alembic - please adjust! ###
2023-08-29 14:54:30 -07:00
op.drop_column("notifications", "provider_response")
op.drop_column("notifications", "queue_name")
2022-09-15 14:59:13 -07:00
### end Alembic commands ###