text: """empty message
  
  Revision ID: 133c05536022
  Revises: 
  Create Date: 2018-03-14 19:37:11.975000
  
  """
  from alembic import op
  import sqlalchemy as sa
  
  
  # revision identifiers, used by Alembic.
  revision = '133c05536022'
  down_revision = None
  branch_labels = None
  depends_on = None
  
  
  def upgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.create_table('contact',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('name', sa.String(length=100), nullable=True),
      sa.Column('email', sa.String(length=140), nullable=True),
      sa.Column('timestamp', sa.DateTime(), nullable=True),
      sa.Column('company', sa.String(length=100), nullable=True),
      sa.Column('message', sa.String(length=500), nullable=True),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_contact_timestamp'), 'contact', ['timestamp'], unique=False)
      op.create_table('news_letter',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('email', sa.String(length=50), nullable=False),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_news_letter_id'), 'news_letter', ['id'], unique=False)
      op.create_table('postcategory',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('category_name', sa.String(), nullable=False),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_table('tag',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('tag_name', sa.String(), nullable=True),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_table('user',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('username', sa.String(length=64), nullable=True),
      sa.Column('email', sa.String(length=120), nullable=True),
      sa.Column('password_hash', sa.String(length=128), nullable=True),
      sa.Column('fullname', sa.String(length=50), nullable=True),
      sa.Column('occupation', sa.String(length=50), nullable=True),
      sa.Column('hobby', sa.String(length=50), nullable=True),
      sa.Column('about_me', sa.String(length=140), nullable=True),
      sa.Column('last_seen', sa.DateTime(), nullable=True),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_user_email'), 'user', ['email'], unique=True)
      op.create_index(op.f('ix_user_username'), 'user', ['username'], unique=True)
      op.create_table('file',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('timestamp', sa.DateTime(), nullable=True),
      sa.Column('filename', sa.String(), nullable=True),
      sa.Column('filedata', sa.LargeBinary(), nullable=True),
      sa.Column('user_id', sa.Integer(), nullable=True),
      sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_table('post',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('author', sa.String(length=50), nullable=True),
      sa.Column('heading', sa.String(), nullable=True),
      sa.Column('timestamp', sa.DateTime(), nullable=True),
      sa.Column('body', sa.String(), nullable=True),
      sa.Column('post_url', sa.String(length=140), nullable=True),
      sa.Column('category_id', sa.Integer(), nullable=True),
      sa.Column('likes', sa.Integer(), nullable=True),
      sa.Column('thumbnail', sa.String(), nullable=True),
      sa.ForeignKeyConstraint(['category_id'], ['postcategory.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_table('comment',
      sa.Column('id', sa.Integer(), nullable=False),
      sa.Column('comment', sa.String(length=400), nullable=True),
      sa.Column('post_id', sa.Integer(), nullable=True),
      sa.Column('timestamp', sa.DateTime(), nullable=True),
      sa.Column('user_id', sa.Integer(), nullable=True),
      sa.Column('approved', sa.Integer(), nullable=True),
      sa.ForeignKeyConstraint(['post_id'], ['post.id'], ),
      sa.ForeignKeyConstraint(['user_id'], ['user.id'], ),
      sa.PrimaryKeyConstraint('id')
      )
      op.create_index(op.f('ix_comment_post_id'), 'comment', ['post_id'], unique=False)
      op.create_table('post_tags',
      sa.Column('post_id', sa.Integer(), nullable=True),
      sa.Column('tag_id', sa.Integer(), nullable=True),
      sa.ForeignKeyConstraint(['post_id'], ['post.id'], ),
      sa.ForeignKeyConstraint(['tag_id'], ['tag.id'], )
      )
      # ### end Alembic commands ###
  
  
  def downgrade():
      # ### commands auto generated by Alembic - please adjust! ###
      op.drop_table('post_tags')
      op.drop_index(op.f('ix_comment_post_id'), table_name='comment')
      op.drop_table('comment')
      op.drop_table('post')
      op.drop_table('file')
      op.drop_index(op.f('ix_user_username'), table_name='user')
      op.drop_index(op.f('ix_user_email'), table_name='user')
      op.drop_table('user')
      op.drop_table('tag')
      op.drop_table('postcategory')
      op.drop_index(op.f('ix_news_letter_id'), table_name='news_letter')
      op.drop_table('news_letter')
      op.drop_index(op.f('ix_contact_timestamp'), table_name='contact')
      op.drop_table('contact')
      # ### end Alembic commands ###
  