<?php
require_once 'config.php';

// 恢复被删除的数据
$pdo->exec("UPDATE video_assets SET is_active = 1 WHERE video_id = 'opening_sample'");
echo "已恢复测试数据\n";

// 查询当前记录
$stmt = $pdo->query("SELECT video_id, video_name, video_type, is_active FROM video_assets");
echo "\n当前视频记录:\n";
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
    echo "ID: {$row['video_id']} | 名称: {$row['video_name']} | 类型: {$row['video_type']} | 活跃: {$row['is_active']}\n";
}
?>