code: def upgrade():
      # Use batch mode so that we can run "ALTER TABLE" statements against SQLite
      # databases (see more info at https://alembic.sqlalchemy.org/en/latest/
      # batch.html#running-batch-migrations-for-sqlite-and-other-databases)
      # We specify existing_type, existing_nullable, existing_server_default
      # because MySQL alter column statements require a full column description.
      with op.batch_alter_table("tags") as batch_op:
          batch_op.alter_column(
              "value",
              existing_type=sa.String(250),
              type_=sa.String(5000),
              existing_nullable=True,
              existing_server_default=None,
          )
  
imports: from alembic import op
  import sqlalchemy
label_desc: Use image node_id 1 for calling a global function with example usage: upgrade() without return types