<?php
declare(strict_types=1);
// ==================================================
// Nuclear Fancy Pants Edition™ — NUCLEAR+++
// File: /migrations/013_post_type_enum_expand.php
// Description: Expand post_type enum to include all 11 supported post types - NUCLEAR+++
// Last Edited: 2026-04-12
// ==================================================
namespace AutoMarketerAI\Migrations;
defined('ABSPATH') || exit;
final class Migration_013_PostTypeEnumExpand
{
    public const VERSION     = '013';
    public const DESCRIPTION = 'Expand post_type enum to include all 11 supported post types';
    public function up(): void
    {
        global $wpdb;
        $table = $wpdb->prefix . 'amai_scheduled_posts';
        $wpdb->query(
            "ALTER TABLE `{$table}`
             MODIFY COLUMN `post_type` ENUM(
                 'educational',
                 'product',
                 'feel_good',
                 'behind_scenes',
                 'engagement',
                 'quote',
                 'humor',
                 'myth_bust',
                 'tip',
                 'milestone',
                 'testimonial'
             ) NOT NULL"
        );
    }
}