<?php
/**
 * File Path: includes/migrations/class-mbs-migration-3-6.php
 *
 * MBS_Migration_3_6 -- Sprint F-027 -- mbs_arc_applicants table
 *
 * Creates the ARC self-signup applicant staging table. Separate from
 * mbs_arc_recipients (author-curated trusted data). Applicants are promoted
 * to mbs_arc_recipients on author approval via the admin panel.
 *
 * @package MyBookShowroom
 * @since   3.6.0
 */

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

/**
 * Class MBS_Migration_3_6
 *
 * @implements MBS_Migration
 */
class MBS_Migration_3_6 implements MBS_Migration { // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedClassFound -- mbs_/MBS_ prefix is correct; scanner not configured with plugin prefix

	public function version(): string {
		return '3.6';
	}

	public function up(): void {
		global $wpdb;
		require_once ABSPATH . 'wp-admin/includes/upgrade.php';
		dbDelta( MBS_DB_Schema::arc_applicants(
			$wpdb->prefix . 'mbs_arc_applicants',
			$wpdb->get_charset_collate()
		) );
	}
}
