Files
notifications-api/migrations/versions/0094_job_stats_update.py

28 lines
761 B
Python
Raw Normal View History

"""empty message
Revision ID: 0094_job_stats_update
2023-07-18 13:44:38 -07:00
Revises: 0092_add_inbound_provider
Create Date: 2017-06-06 14:37:30.051647
"""
import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
2023-08-29 14:54:30 -07:00
revision = "0094_job_stats_update"
down_revision = "0092_add_inbound_provider"
def upgrade():
2023-08-29 14:54:30 -07:00
op.add_column("job_statistics", sa.Column("sent", sa.BigInteger(), nullable=True))
op.add_column(
"job_statistics", sa.Column("delivered", sa.BigInteger(), nullable=True)
)
op.add_column("job_statistics", sa.Column("failed", sa.BigInteger(), nullable=True))
def downgrade():
2023-08-29 14:54:30 -07:00
op.drop_column("job_statistics", "sent")
op.drop_column("job_statistics", "failed")
op.drop_column("job_statistics", "delivered")