mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-09 06:32:11 -05:00
29 lines
675 B
Python
29 lines
675 B
Python
"""
|
|
|
|
Revision ID: 0157_add_rate_limit_to_service
|
|
Revises: 0156_set_temp_letter_contact
|
|
Create Date: 2018-01-08 16:13:25.733336
|
|
|
|
"""
|
|
import sqlalchemy as sa
|
|
from alembic import op
|
|
|
|
revision = "0157_add_rate_limit_to_service"
|
|
down_revision = "0156_set_temp_letter_contact"
|
|
|
|
|
|
def upgrade():
|
|
op.add_column(
|
|
"services",
|
|
sa.Column("rate_limit", sa.Integer(), nullable=False, server_default="3000"),
|
|
)
|
|
op.add_column(
|
|
"services_history",
|
|
sa.Column("rate_limit", sa.Integer(), nullable=False, server_default="3000"),
|
|
)
|
|
|
|
|
|
def downgrade():
|
|
op.drop_column("services_history", "rate_limit")
|
|
op.drop_column("services", "rate_limit")
|