diff --git a/.air.toml b/.air.toml index 8a7afb91..4e2e9398 100644 --- a/.air.toml +++ b/.air.toml @@ -5,7 +5,7 @@ tmp_dir = "tmp" [build] args_bin = [] bin = "./tmp/main" - cmd = "CGO_CFLAGS='-Wno-deprecated-declarations -Wno-gnu-folding-constant' CGO_LDFLAGS='-Wl,-no_warn_duplicate_libraries' go build -ldflags=\"-X 'google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn'\" -o ./tmp/main ./cmd/server" + cmd = "CGO_CFLAGS='-Wno-deprecated-declarations -Wno-gnu-folding-constant' CGO_LDFLAGS='-Wl,-no_warn_duplicate_libraries' go build -ldflags=\"$(./scripts/get_version.sh ldflags) -X 'google.golang.org/protobuf/reflect/protoregistry.conflictPolicy=warn'\" -o ./tmp/main ./cmd/server" delay = 1000 exclude_dir = ["assets", "tmp", "vendor", "testdata", "frontend", "migrations", "node_modules", "docs"] exclude_file = [] diff --git a/frontend/src/api/system/index.ts b/frontend/src/api/system/index.ts index 4c18d8c2..3fe63fcd 100644 --- a/frontend/src/api/system/index.ts +++ b/frontend/src/api/system/index.ts @@ -10,6 +10,7 @@ export interface SystemInfo { vector_store_engine?: string graph_database_engine?: string minio_enabled?: boolean + db_version?: string } export interface ToolDefinition { diff --git a/frontend/src/i18n/locales/en-US.ts b/frontend/src/i18n/locales/en-US.ts index d13cd223..73120b2a 100755 --- a/frontend/src/i18n/locales/en-US.ts +++ b/frontend/src/i18n/locales/en-US.ts @@ -1698,6 +1698,8 @@ export default { buildTimeDescription: 'Time when the system was built', goVersionLabel: 'Go Version', goVersionDescription: 'Go language version used by the backend', + dbVersionLabel: 'Database Version', + dbVersionDescription: 'Current database migration version', keywordIndexEngineLabel: 'Keyword Index Engine', keywordIndexEngineDescription: 'Currently used keyword index engine', vectorStoreEngineLabel: 'Vector Store Engine', diff --git a/frontend/src/i18n/locales/ko-KR.ts b/frontend/src/i18n/locales/ko-KR.ts index a57e4df8..101a468b 100755 --- a/frontend/src/i18n/locales/ko-KR.ts +++ b/frontend/src/i18n/locales/ko-KR.ts @@ -1194,6 +1194,8 @@ export default { buildTimeDescription: "시스템이 빌드된 시간", goVersionLabel: "Go 버전", goVersionDescription: "백엔드에서 사용하는 Go 언어 버전", + dbVersionLabel: "데이터베이스 버전", + dbVersionDescription: "현재 데이터베이스 마이그레이션 버전", keywordIndexEngineLabel: "키워드 인덱스 엔진", keywordIndexEngineDescription: "현재 사용 중인 키워드 인덱스 엔진", vectorStoreEngineLabel: "벡터 저장소 엔진", diff --git a/frontend/src/i18n/locales/ru-RU.ts b/frontend/src/i18n/locales/ru-RU.ts index 6a4f0b9f..c8b37f6b 100755 --- a/frontend/src/i18n/locales/ru-RU.ts +++ b/frontend/src/i18n/locales/ru-RU.ts @@ -815,6 +815,8 @@ export default { buildTimeDescription: 'Время, когда система была собрана', goVersionLabel: 'Версия Go', goVersionDescription: 'Версия языка Go, используемая backend', + dbVersionLabel: 'Версия базы данных', + dbVersionDescription: 'Текущая версия миграции базы данных', keywordIndexEngineLabel: 'Движок индексации ключевых слов', keywordIndexEngineDescription: 'Используемый в настоящее время движок индексации ключевых слов', vectorStoreEngineLabel: 'Движок векторного хранилища', diff --git a/frontend/src/i18n/locales/zh-CN.ts b/frontend/src/i18n/locales/zh-CN.ts index 02bf576e..ed9521fc 100755 --- a/frontend/src/i18n/locales/zh-CN.ts +++ b/frontend/src/i18n/locales/zh-CN.ts @@ -1174,6 +1174,8 @@ export default { buildTimeDescription: "系统构建的时间", goVersionLabel: "Go 版本", goVersionDescription: "后端使用的 Go 语言版本", + dbVersionLabel: "数据库版本", + dbVersionDescription: "当前数据库迁移版本号", keywordIndexEngineLabel: "关键词索引引擎", keywordIndexEngineDescription: "当前使用的关键词索引引擎", vectorStoreEngineLabel: "向量存储引擎", diff --git a/frontend/src/views/settings/SystemInfo.vue b/frontend/src/views/settings/SystemInfo.vue index 07b72cbe..95fb6991 100644 --- a/frontend/src/views/settings/SystemInfo.vue +++ b/frontend/src/views/settings/SystemInfo.vue @@ -67,6 +67,17 @@ + +
{{ $t('system.dbVersionDescription') }}
+