mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-14 17:22:17 -05:00
27 lines
613 B
Python
27 lines
613 B
Python
"""
|
|
|
|
Revision ID: 0414_change_total_message_limit
|
|
Revises: 413_add_message_id
|
|
Create Date: 2025-01-23 11:35:22.873930
|
|
|
|
"""
|
|
|
|
import sqlalchemy as sa
|
|
from alembic import op
|
|
|
|
down_revision = "0413_add_message_id"
|
|
revision = "0414_change_total_message_limit"
|
|
|
|
|
|
def upgrade():
|
|
# TODO This needs updating when the agreement model is ready. We only want free tier at 100k
|
|
op.execute(
|
|
"UPDATE services set total_message_limit=100000 where total_message_limit=250000"
|
|
)
|
|
|
|
|
|
def downgrade():
|
|
op.execute(
|
|
"UPDATE services set total_message_limit=250000 where total_message_limit=100000"
|
|
)
|