mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-11 15:52:21 -05:00
28 lines
651 B
Python
28 lines
651 B
Python
"""
|
|
|
|
Revision ID: 0195_ft_notification_timestamps
|
|
Revises: 0194_ft_billing_created_at
|
|
Create Date: 2018-05-22 16:01:53.269137
|
|
|
|
"""
|
|
|
|
import sqlalchemy as sa
|
|
from alembic import op
|
|
|
|
revision = "0195_ft_notification_timestamps"
|
|
down_revision = "0194_ft_billing_created_at"
|
|
|
|
|
|
def upgrade():
|
|
op.add_column(
|
|
"ft_notification_status", sa.Column("created_at", sa.DateTime(), nullable=False)
|
|
)
|
|
op.add_column(
|
|
"ft_notification_status", sa.Column("updated_at", sa.DateTime(), nullable=True)
|
|
)
|
|
|
|
|
|
def downgrade():
|
|
op.drop_column("ft_notification_status", "updated_at")
|
|
op.drop_column("ft_notification_status", "created_at")
|