<?php
/**
 * Fundraisers Migration Runner
 *
 * Runs sequential database / data migrations for the Fundraisers module and
 * hooks into the platform-wide ambh_run_migrations action so the
 * Migrations\Manager coordinates all modules together.
 *
 * @package AmbassadorHub\Fundraisers
 */

namespace AmbassadorHub\Fundraisers;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

use AmbassadorHub\Migrations\AbstractMigrationRunner;

/**
 * Runs sequential Fundraisers data migrations.
 */
final class MigrationRunner extends AbstractMigrationRunner {

	protected const VERSION_OPTION = 'ambh_fundraisers_db_version';

	/**
	 * Return the ordered map of version → migration class.
	 *
	 * @return array<int, class-string>
	 */
	protected static function get_migrations(): array {
		return array(
			1 => Migrations\MigrateCampaignsToFundraisers::class,
		);
	}
}
