"""

Revision ID: 0158_remove_rate_limit_default
Revises: 0157_add_rate_limit_to_service
Create Date: 2018-01-09 14:33:08.313893

"""
import sqlalchemy as sa
from alembic import op

revision = "0158_remove_rate_limit_default"
down_revision = "0157_add_rate_limit_to_service"


def upgrade():
    op.execute("ALTER TABLE services ALTER rate_limit DROP DEFAULT")
    op.execute("ALTER TABLE services_history ALTER rate_limit DROP DEFAULT")


def downgrade():
    op.execute("ALTER TABLE services ALTER rate_limit SET DEFAULT '3000'")
    op.execute("ALTER TABLE services_history ALTER rate_limit SET DEFAULT '3000'")

[((16, 4, 16, 68), 'alembic.op.execute', 'op.execute', ({(16, 15, 16, 67): '"""ALTER TABLE services ALTER rate_limit DROP DEFAULT"""'}, {}), "('ALTER TABLE services ALTER rate_limit DROP DEFAULT')", False, 'from alembic import op\n'), ((17, 4, 17, 76), 'alembic.op.execute', 'op.execute', ({(17, 15, 17, 75): '"""ALTER TABLE services_history ALTER rate_limit DROP DEFAULT"""'}, {}), "('ALTER TABLE services_history ALTER rate_limit DROP DEFAULT')", False, 'from alembic import op\n'), ((21, 4, 21, 74), 'alembic.op.execute', 'op.execute', ({(21, 15, 21, 73): '"""ALTER TABLE services ALTER rate_limit SET DEFAULT \'3000\'"""'}, {}), '("ALTER TABLE services ALTER rate_limit SET DEFAULT \'3000\'")', False, 'from alembic import op\n'), ((22, 4, 22, 82), 'alembic.op.execute', 'op.execute', ({(22, 15, 22, 81): '"""ALTER TABLE services_history ALTER rate_limit SET DEFAULT \'3000\'"""'}, {}), '("ALTER TABLE services_history ALTER rate_limit SET DEFAULT \'3000\'")', False, 'from alembic import op\n')]