-- 一次性迁移：将所有时间字段从 UTC 修正为 Asia/Shanghai (+8h)
-- 用法: mysql -u weibo -p weibo_hotsign < migrate_fix_timezone.sql
-- 注意: 只执行一次！重复执行会多加 8 小时

UPDATE signin_logs SET signed_at = DATE_ADD(signed_at, INTERVAL 8 HOUR);
UPDATE accounts SET last_checked_at = DATE_ADD(last_checked_at, INTERVAL 8 HOUR) WHERE last_checked_at IS NOT NULL;
UPDATE accounts SET created_at = DATE_ADD(created_at, INTERVAL 8 HOUR);
UPDATE tasks SET created_at = DATE_ADD(created_at, INTERVAL 8 HOUR);
UPDATE users SET created_at = DATE_ADD(created_at, INTERVAL 8 HOUR);
