"""Add followings table Revision ID: 939ae85df8d9 Revises: 3aa8e4d7fbb5 Create Date: 2016-08-06 10:19:41.290832 """ # revision identifiers, used by Alembic. revision = '939ae85df8d9' down_revision = '3aa8e4d7fbb5' branch_labels = None depends_on = None from alembic import op import sqlalchemy as sa def upgrade(): ### commands auto generated by Alembic - please adjust! ### op.create_table('followings', sa.Column('influencer_eid', sa.Integer(), autoincrement=False, nullable=False), sa.Column('followee_eid', sa.Integer(), autoincrement=False, nullable=False), sa.Column('datasource', sa.String(length=16), nullable=False), sa.Column('seen_at', sa.DateTime(), server_default=sa.text('CURRENT_TIMESTAMP'), nullable=True), sa.PrimaryKeyConstraint('influencer_eid', 'followee_eid', 'datasource') ) ### end Alembic commands ### def downgrade(): ### commands auto generated by Alembic - please adjust! ### op.drop_table('followings') ### end Alembic commands ###