Files
lgp-admin-plus-api/database/sql/2026-08-18/01_qiniu_clear_default_prefix.sql
2026-08-19 08:16:49 +08:00

14 lines
541 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- ============================================================
-- 七牛种子默认 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;