-- ============================================================
-- 七牛种子默认 path_prefix=uploads，但本站历史对象都在 Bucket 根目录
-- （b_*.jpg）。列举再套这层前缀会拉回空列表。
-- 只清掉仍是种子默认值的行；运营自己改过的前缀不动。
-- ============================================================

SET @now := UNIX_TIMESTAMP();

UPDATE `nl_oss_config`
SET `path_prefix` = '', `updated_at` = @now
WHERE `driver` = 'qiniu'
  AND `path_prefix` = 'uploads'
  AND `deleted_at` = 0;
