mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-08 22:22:24 -05:00
track message costs
This commit is contained in:
23
migrations/versions/0415_add_message_cost.py
Normal file
23
migrations/versions/0415_add_message_cost.py
Normal file
@@ -0,0 +1,23 @@
|
||||
"""
|
||||
|
||||
Revision ID: 0415_add_message_cost
|
||||
Revises: 0414_change_total_message_limit
|
||||
Create Date: 2025-02-28 11:35:22.873930
|
||||
|
||||
"""
|
||||
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
down_revision = "0414_change_total_message_limit"
|
||||
revision = "0415_add_message_cost"
|
||||
|
||||
|
||||
def upgrade():
|
||||
op.add_column("notifications", sa.Column("message_cost", sa.Float))
|
||||
op.add_column("notification_history", sa.Column("message_cost", sa.Float))
|
||||
|
||||
|
||||
def downgrade():
|
||||
op.drop_column("notifications", "message_cost")
|
||||
op.add_column("notification_history", sa.Column("message_cost", sa.Float))
|
||||
Reference in New Issue
Block a user