Files
notifications-api/migrations/versions/0338_add_notes_to_service.py

27 lines
735 B
Python
Raw Normal View History

2021-01-13 11:53:16 +00:00
"""
Revision ID: 0338_add_notes_to_service
Revises: 0337_broadcast_msg_api
Create Date: 2021-01-13 11:50:06.333369
"""
import sqlalchemy as sa
from alembic import op
2021-01-13 11:53:16 +00:00
2023-08-29 14:54:30 -07:00
revision = "0338_add_notes_to_service"
down_revision = "0337_broadcast_msg_api"
2021-01-13 11:53:16 +00:00
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
2023-08-29 14:54:30 -07:00
op.add_column("services", sa.Column("notes", sa.Text(), nullable=True))
op.add_column("services_history", sa.Column("notes", sa.Text(), nullable=True))
2021-01-13 11:53:16 +00:00
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
2023-08-29 14:54:30 -07:00
op.drop_column("services_history", "notes")
op.drop_column("services", "notes")
2021-01-13 11:53:16 +00:00
# ### end Alembic commands ###