def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('bit_facebook_daily_ad_insights',
sa.Column('id', sa.INTEGER(), nullable=False),
sa.Column('ad_id', sa.INTEGER(), autoincrement=False, nullable=True),
sa.Column('buying_type', sa.VARCHAR(length=255), autoincrement=False, nullable=True),
sa.Column('unique_clicks', sa.INTEGER(), autoincrement=False, nullable=True),
sa.Column('age', sa.VARCHAR(length=255), autoincrement=False, nullable=True),
sa.Column('gender', sa.VARCHAR(length=255), autoincrement=False, nullable=True),
sa.Column('date_stop', postgresql.TIMESTAMP(), autoincrement=False, nullable=True),
sa.Column('date_start', postgresql.TIMESTAMP(), autoincrement=False, nullable=True),
sa.ForeignKeyConstraint(['ad_id'], [u'bit_facebook_ad.id'], name=u'bit_facebook_daily_ad_insights_ad_id_fkey'),
sa.PrimaryKeyConstraint('id', name=u'bit_facebook_daily_ad_insights_pkey')
)
# ### end Alembic commands ###
评论列表
文章目录