Files
notifications-api/migrations/versions/0002_add_content_char_count.py
T

30 lines
750 B
Python
Raw Normal View History

2016-04-15 15:19:58 +01:00
"""empty message
Revision ID: 0002_add_content_char_count
Revises: 0001_restart_migrations
Create Date: 2016-04-15 12:12:46.383782
"""
# revision identifiers, used by Alembic.
2023-08-29 14:54:30 -07:00
revision = "0002_add_content_char_count"
down_revision = "0001_restart_migrations"
2016-04-15 15:19:58 +01:00
import sqlalchemy as sa
2023-12-08 21:43:52 -05:00
from alembic import op
from sqlalchemy.sql import column, table
2016-04-15 15:19:58 +01:00
def upgrade():
### commands auto generated by Alembic - please adjust! ###
2023-08-29 14:54:30 -07:00
op.add_column(
"notifications", sa.Column("content_char_count", sa.Integer(), nullable=True)
)
2016-04-15 15:19:58 +01:00
### end Alembic commands ###
def downgrade():
### commands auto generated by Alembic - please adjust! ###
2023-08-29 14:54:30 -07:00
op.drop_column("notifications", "content_char_count")
2016-04-15 15:19:58 +01:00
### end Alembic commands ###