text: """create bg image table
  
  Revision ID: 65ecca208669
  Revises: fb6435c5c08d
  Create Date: 2017-12-21 10:04:50.752000
  
  """
  
  # revision identifiers, used by Alembic.
  revision = '65ecca208669'
  down_revision = 'fb6435c5c08d'
  
  from alembic import op
  import sqlalchemy as sa
  
  
  def upgrade():
      op.create_table(
      'bg_images',
      sa.Column('file',sa.String(length=96), nullable=False, unique=True),
      sa.Column('create_time', sa.DateTime(), nullable=False),
      sa.Column('update_time', sa.DateTime(), nullable=False),
      sa.Column('movies_movie_id', sa.Integer(), nullable=False),
      sa.ForeignKeyConstraint(['movies_movie_id'], ['movies.movie_id'], )
      )
  
  
  def downgrade():
      op.drop_table('bg_images')
  