notify-api-522

This commit is contained in:
Kenneth Kehl
2023-10-24 11:35:00 -07:00
parent 8779160f89
commit 6d84ec64e5
4 changed files with 55 additions and 9 deletions

View File

@@ -0,0 +1,23 @@
"""
Revision ID: 0403_add_carrier
Revises: 0402_total_message_limit_default
"""
from alembic import op
from flask import current_app
import sqlalchemy as sa
down_revision = "0402_total_message_limit_default"
revision = "0403_add_carrier"
def upgrade():
op.execute("ALTER TABLE notifications ADD COLUMN carrier text")
op.execute("ALTER TABLE notification_history ADD COLUMN carrier text")
def downgrade():
op.execute("ALTER TABLE notifications DROP COLUMN carrier text")
op.execute("ALTER TABLE notification_history DROP COLUMN carrier text")