code: def downgrade():
      conn = op.get_bind()
      session = sa.orm.Session(bind=conn)
  
      view_integration = db.Integration.query.filter_by(
          name="views"
      ).first()
      if view_integration is None:
          views_integration = db.Integration(
              name="views", data={}, engine="views", company_id=None
          )
          session.add(views_integration)
      session.commit()
  
      with op.batch_alter_table("view", schema=None) as batch_op:
          batch_op.drop_constraint("fk_project_id", type_="foreignkey")
          batch_op.drop_column("project_id")
  
      with op.batch_alter_table("predictor", schema=None) as batch_op:
          batch_op.drop_constraint("fk_project_id", type_="foreignkey")
          batch_op.drop_column("project_id")
  
      op.drop_table("project")
  
imports: from alembic import op
  import sqlalchemy
  from sqlalchemy.sql import text
  import mindsdb.interfaces.storage.db
label_desc: Use image node_id 2 for calling a global function with example usage: downgrade() without return types