<?php
/**
 * File Path: includes/migrations/class-mbs-migration-1-6.php
 *
 * MBS_Migration_1_6 — Reset section order option (JS Reset handler fix)
 *
 * Second deletion of mbs_setting_formatting_section_order after JS reset handler fix.
 *
 * @package MyBookShowroom
 * @since   3.2.0
 */

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

/**
 * Class MBS_Migration_1_6
 *
 * Second deletion of mbs_setting_formatting_section_order after JS reset handler fix.
 *
 * @implements MBS_Migration
 */
class MBS_Migration_1_6 implements MBS_Migration { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- mbs_/MBS_ prefix is correct; scanner not configured with plugin prefix

	/**
	 * {@inheritdoc}
	 *
	 * @return string
	 */
	public function version(): string {
		return '1.6';
	}

	/**
	 * {@inheritdoc}
	 *
	 * Second deletion of mbs_setting_formatting_section_order after JS reset handler fix.
	 *
	 * @return void
	 */
	public function up(): void {
		delete_option( 'mbs_setting_formatting_section_order' );
	}
}
