code: def upgrade():
      def _rename(table):
          conn = op.get_bind()
  
          data = conn.execute(
              table.select().where(table.c.name.like("%.%"))
          ).fetchall()
  
          for row in data:
              name = row[0]
              name2 = name.replace(".", "_")
  
              op.execute(
                  table.update()
                  .where(table.c.name == name)
                  .values({"name": name2})
              )
  
      projects = sa.Table(
          "project",
          sa.MetaData(),
          sa.Column("name", sa.String()),
      )
  
      _rename(projects)
  
      integrations = sa.Table(
          "integration",
          sa.MetaData(),
          sa.Column("name", sa.String()),
      )
  
      _rename(integrations)
  
imports: from alembic import op
  import sqlalchemy
  import mindsdb.interfaces.storage.db
label_desc: Use image node_id 1 for calling a global function with example usage: upgrade() without return types