code: def upgrade():
      """Apply Rename ``concurrency`` column in ``dag`` table to`` max_active_tasks``"""
      conn = op.get_bind()
      is_sqlite = bool(conn.dialect.name == "sqlite")
  
      if is_sqlite:
          op.execute("PRAGMA foreign_keys=off")
      with op.batch_alter_table("dag") as batch_op:
          batch_op.alter_column(
              "concurrency",
              new_column_name="max_active_tasks",
              type_=sa.Integer(),
              nullable=False,
          )
      if is_sqlite:
          op.execute("PRAGMA foreign_keys=on")
  
imports: from __future__ import annotations
  import sqlalchemy
  from alembic import op
label_desc: Use image node_id 1 for calling a global function with example usage: upgrade() without return types