<?php
/**
 * Repairs the complete core schema after module-table additions.
 *
 * @package ScheduledChanges
 */

namespace ScheduledChanges\Database\Migrations;

use ScheduledChanges\Database\Migration;

/**
 * Re-runs the dbDelta-backed core schema to create any missing scheduler tables.
 */
final class CompleteCoreSchemaMigration implements Migration {
	/**
	 * {@inheritDoc}
	 */
	public function version(): int {
		return 5;
	}

	/**
	 * {@inheritDoc}
	 */
	public function up( \wpdb $wpdb ): void {
		( new InitialSchemaMigration() )->up( $wpdb );
	}
}
