op.execute(
    'ALTER TABLE similar_orders ADD COLUMN id INTEGER UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT'
    )

def downgrade():
    op.drop_column('similar_orders', 'id')
Alter Primary Key in Alembic?