Update 2026-06-23 10:40:10
Build and Push Docker Images / Build Backend Image (push) Has been cancelled
Build and Push Docker Images / Build Frontend Image (push) Has been cancelled
Build and Push Docker Images / Notify Build Complete (push) Has been cancelled

This commit is contained in:
yi
2026-06-23 10:40:10 +08:00
parent 864efb7f9d
commit e9bff9beb3
56 changed files with 295 additions and 292 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ const Device = require('../models/Device');
async function migrate() {
console.log('========================================');
console.log(' IDC管理系统 - 数据库迁移脚本 v2.0 ');
console.log(' 云睿资产管理系统 - 数据库迁移脚本 v2.0 ');
console.log('========================================');
console.log('');
+1 -1
View File
@@ -62,7 +62,7 @@ for (let i = 0; i < args.length; i++) {
async function runBackup() {
console.log('========================================');
console.log(' IDC设备管理系统 - 数据备份工具');
console.log(' 云睿资产管理系统 - 数据备份工具');
console.log('========================================\n');
try {
+2 -2
View File
@@ -46,7 +46,7 @@ const defaultSettings = [
// 全局配置
{
settingKey: 'site_name',
settingValue: JSON.stringify('机柜管理系统'),
settingValue: JSON.stringify('云睿资产管理系统'),
settingType: 'string',
category: 'general',
description: '网站名称',
@@ -210,7 +210,7 @@ const defaultSettings = [
},
{
settingKey: 'system_description',
settingValue: JSON.stringify('机柜管理系统 - 专业的数据中心设备管理解决方案'),
settingValue: JSON.stringify('云睿资产管理系统 - 专业的数据中心设备管理解决方案'),
settingType: 'string',
category: 'about',
description: '系统描述',
+2 -2
View File
@@ -1,5 +1,5 @@
/**
* IDC管理系统 - 数据库迁移汇总脚本
* 云睿资产管理系统 - 数据库迁移汇总脚本
* 按顺序执行所有数据库迁移
* 支持幂等执行(重复执行不会出错)
* 支持 SQLite 和 MySQL
@@ -142,7 +142,7 @@ const migrations = [
async function runMigrations() {
console.log('========================================');
console.log(' IDC管理系统 - 数据库迁移汇总脚本 ');
console.log(' 云睿资产管理系统 - 数据库迁移汇总脚本 ');
console.log('========================================');
console.log(`数据库类型: ${DB_TYPE}`);
console.log(`迁移数量: ${migrations.length}`);
+1 -1
View File
@@ -72,7 +72,7 @@ if (!options.file) {
async function runRestore() {
console.log('========================================');
console.log(' IDC设备管理系统 - 数据恢复工具');
console.log(' 云睿资产管理系统 - 数据恢复工具');
console.log('========================================\n');
const backupFile = path.resolve(options.file);
+2 -2
View File
@@ -1,9 +1,9 @@
/**
* 示例数据种子脚本
* 为 IDC 设备资产管理系统写入演示数据(幂等,可重复执行)
* 为 云睿资产管理系统写入演示数据(幂等,可重复执行)
*
* 本地:node scripts/seed-example-data.js
* Dockerdocker exec idc_assest-backend node scripts/seed-example-data.js
* Dockerdocker exec yunrui_asset-backend node scripts/seed-example-data.js
*/
require('dotenv').config({ path: require('path').join(__dirname, '..', '.env') });