new_contents: """Add Log Table for User Actions
  
  Revision ID: 117567def844
  Revises: 2c3193839c9d
  Create Date: 2017-06-19 00:39:17.408944
  
  """
  
  # revision identifiers, used by Alembic.
  revision = '117567def844'
  down_revision = '2c3193839c9d'
  
  from alembic import op
  import sqlalchemy as sa
  from sqlalchemy.dialects import postgresql
  
  def upgrade():
      ### commands auto generated by Alembic - please adjust! ###
      op.create_table('user_log',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('ipaddr', postgresql.INET(), nullable=False),
      sa.Column('timestamp', sa.DateTime(), nullable=False),
      sa.Column('uid', sa.String(length=32), nullable=False),
      sa.Column('method', sa.Enum('GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'CONNECT', 'OPTIONS', 'TRACE', 'PATCH', name='http_enum'), nullable=True),
      sa.Column('blueprint', sa.String(length=32), nullable=False),
      sa.Column('path', sa.String(length=128), nullable=False),
      sa.Column('description', sa.String(length=128), nullable=False),
      sa.PrimaryKeyConstraint('id')
      )
      ### end Alembic commands ###
  
  
  def downgrade():
      ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('user_log')
      ### end Alembic commands ###
  
subject: Add Log Table