message: fix: Alembic migration
diff: @@ -28,14 +28,22 @@ down_revision = "3fbbc6e8d654"
  from alembic import op
  from sqlalchemy.dialects.mysql.base import MySQLDialect
  +from sqlalchemy.engine.reflection import Inspector
  +
  +from superset.utils.core import generic_find_uq_constraint_name
  def upgrade():
  bind = op.get_bind()
  +
  + # Uniqueness constraint if present only exists in MySQL.
  if isinstance(bind.dialect, MySQLDialect):
  - # index only exists in mysql db
  - with op.get_context().autocommit_block():
  - op.drop_constraint("table_name", "tables", type_="unique")
  + constraint_name = generic_find_uq_constraint_name(
  + "tables", {"table_name"}, Inspector.from_engine(bind)
  + )
  +
  + if constraint_name:
  + op.drop_constraint(constraint_name, "tables", type_="unique")
  def downgrade():
  