<?php

namespace AC_SYNC\Includes\Classes\Sql\Version {
    if (!defined('ABSPATH'))
        exit; // Exit if accessed directly
    class Action_Wear_Sql_Version_1_0_4 extends Action_Wear_Sql_Version_Abstract implements Action_Wear_Sql_Version_Interface
    {

        public static function versioningScript()
        {
            global $wpdb;

            // Add has_new column to actionwear_products table
            $wpdb->query("ALTER TABLE {$wpdb->prefix}actionwear_products ADD COLUMN `has_new` TINYINT(1) NOT NULL DEFAULT 0 AFTER `is_configurable`;");

            // Add has_new_color column to actionwear_products table
            $wpdb->query("ALTER TABLE {$wpdb->prefix}actionwear_products ADD COLUMN `has_new_color` TINYINT(1) NOT NULL DEFAULT 0 AFTER `has_new`;");
        }
    }
}
