mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 23:26:23 -05:00
Character count added and tests passing.
Remove sql restriction for count to not be null.
This commit is contained in:
27
migrations/versions/0002_add_content_char_count.py
Normal file
27
migrations/versions/0002_add_content_char_count.py
Normal file
@@ -0,0 +1,27 @@
|
||||
"""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.
|
||||
revision = '0002_add_content_char_count'
|
||||
down_revision = '0001_restart_migrations'
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
from sqlalchemy.sql import table, column
|
||||
|
||||
|
||||
def upgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('notifications', sa.Column('content_char_count', sa.Integer(), nullable=True))
|
||||
### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_column('notifications', 'content_char_count')
|
||||
### end Alembic commands ###
|
||||
Reference in New Issue
Block a user