<?php

declare(strict_types=1);

namespace ThemeREX\AutoDealer\Database;

/**
 * Contract for database migrations.
 *
 * @package ThemeREX\AutoDealer
 */
interface MigrationInterface {

	/**
	 * Run the migration.
	 *
	 * @param \wpdb $wpdb WordPress database instance.
	 * @return void
	 */
	public function up( \wpdb $wpdb ): void;

	/**
	 * Get the migration version number.
	 *
	 * @return int
	 */
	public function getVersion(): int;
}
