-- HTML Snippet Migration Backup - 2025-10-30 06:21:05

-- XYZ Plugin Table Backup
CREATE TABLE `wput_xyz_ihs_short_code_backup` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `title` varchar(1000) NOT NULL,
  `content` longtext NOT NULL,
  `short_code` varchar(2000) NOT NULL,
  `status` int(11) NOT NULL,
  `insertionMethod` int(11) NOT NULL DEFAULT 2,
  `insertionLocation` int(11) NOT NULL DEFAULT 0,
  `insertionLocationType` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

INSERT INTO `wput_xyz_ihs_short_code_backup` SELECT * FROM `wput_xyz_ihs_short_code`;


-- MCP Plugin Table Backup
CREATE TABLE `wput_html_snippets_mcp_backup` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `content` longtext NOT NULL,
  `position` varchar(50) DEFAULT 'shortcode',
  `is_active` tinyint(1) DEFAULT 1,
  `priority` int(11) DEFAULT 10,
  `page_conditions` text DEFAULT NULL,
  `created_at` datetime DEFAULT current_timestamp(),
  `updated_at` datetime DEFAULT current_timestamp() ON UPDATE current_timestamp(),
  PRIMARY KEY (`id`),
  KEY `name_idx` (`name`(250)),
  KEY `position_idx` (`position`),
  KEY `active_idx` (`is_active`)
) ENGINE=MyISAM AUTO_INCREMENT=24 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_520_ci;

INSERT INTO `wput_html_snippets_mcp_backup` SELECT * FROM `wput_html_snippets_mcp`;

