0x0

mia's file "the null pointer" hosting application -- l0bster h0sted
Log | Files | Refs | LICENSE

7e246705da6a_.py (616B)


      1 """add NSFW score
      2 
      3 Revision ID: 7e246705da6a
      4 Revises: 0cd36ecdd937
      5 Create Date: 2017-10-27 03:07:48.179290
      6 
      7 """
      8 
      9 # revision identifiers, used by Alembic.
     10 revision = '7e246705da6a'
     11 down_revision = '0cd36ecdd937'
     12 
     13 from alembic import op
     14 import sqlalchemy as sa
     15 
     16 
     17 def upgrade():
     18     # ### commands auto generated by Alembic - please adjust! ###
     19     op.add_column('file', sa.Column('nsfw_score', sa.Float(), nullable=True))
     20     # ### end Alembic commands ###
     21 
     22 
     23 def downgrade():
     24     # ### commands auto generated by Alembic - please adjust! ###
     25     op.drop_column('file', 'nsfw_score')
     26     # ### end Alembic commands ###