mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-30 22:26:38 +08:00
410ff14795
Remove w_uploads.storage_driver and route all read/write/delete paths through storage.Active() backed by storage_config.driver. Block direct driver switches when uploads exist; require migration task instead. Simplify migration to cursor-based file_path iteration without per-row driver updates.
16 lines
517 B
Go
16 lines
517 B
Go
// Copyright 2025 linux.do
|
|
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Package system_config 提供系统配置管理功能
|
|
package system_config
|
|
|
|
// 系统配置错误消息常量
|
|
const (
|
|
SystemConfigNotFound = "系统配置不存在"
|
|
ConfigKeyRequired = "配置键不能为空"
|
|
ConfigValueRequired = "配置值不能为空"
|
|
ConfigKeyExists = "配置键已存在"
|
|
StorageDriverSwitchRequiresMigration = "存在存量文件,请通过存储迁移任务切换存储引擎"
|
|
)
|