支持 SQLite、MySQL、PostgreSQL 之间迁移。先验证目标连接,再复制并逐表校验数据;旧数据库不会删除。迁移期间暂停写入,成功后必须立即重启后端。
当前数据库类型
{{ databaseTypeLabel(databaseConfig.type) }}
当前数据库
{{ databaseConfig.type === 'sqlite' ? databaseConfig.localRef || '-' : databaseConfig.name || '-' }}
{{ migrationTarget.type === 'sqlite' ? '文件固定存放在运行目录 config 下,只填写新文件名,不填写路径。' : '请使用尚不存在的库名,系统执行时自动建库。新连接必须填写密码,不会复用源数据库密码。' }}
PostgreSQL 连接要求数据库服务启用 TLS 加密,与迁移后的运行连接保持一致。
迁移状态
{{ migrationStatusLabel(migrationRecord.status) }}
迁移编号:{{ migrationRecord.id }}
源数据库:{{ migrationRecord.source?.name || migrationRecord.source?.localRef || '-' }}
目标数据库:{{ databaseTypeLabel(migrationRecord.target?.type) }} · {{ migrationRecord.target?.name || migrationRecord.target?.localRef || '-' }}
目标连接:{{ migrationRecord.target.host }}:{{ migrationRecord.target.port }} · {{ migrationRecord.target.username }}