Server Migration: real analysis and a real modular copy

The page was a mock: it never read the database (always 0 accounts),
showed a hard-coded schema and core version, looked for server files in
the wrong folder, and its "transfer" reported accounts, characters and
tables as moved without moving anything. Its locale was fixed to "ru".

- remove server_migration.rs and its three commands
- modular_copy::preview: classic/modular core, version, database state,
  counts and schemas from a running database (read only), database size,
  settings files, extra worlds; nothing is started or changed
- the page shows that and hands over to the same modular-copy install
  screen as "Manage another server"; texts in en and ru via i18n
- the modular copy now carries world settings changed in Server
  Configuration (Settings/worldserver.conf.template was not copied)
- E2E preview_bare_and_copy_e2e checks the preview and the carried
  setting; passes against preview core 0.261108.9501

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ДмитрийandClaude Opus 5.5 committed 2026-11-11 09:22:22 +05:00
1 parent 6091e545f8
commit fdbf38ee4e
14 files changed
+495 -1260

No files matched your search

+3 -1
View File
@@ -46,6 +46,8 @@ export function Shell(props: {
activeId: string;
onSelect: (id: string) => void;
onAddAnother: () => void;
/** Make a modular copy of a classic server (the install screen takes over). */
onCopy: (path: string) => void;
onForget: (id: string) => Promise<void>;
}) {
const t = useT();
@@ -174,7 +176,7 @@ export function Shell(props: {
) : page === "players" ? (
<PlayersPage key={server.id} serverId={server.id} />
) : page === "migration" ? (
<ServerMigrationWizard key={server.id} currentRealmId={server.id} onClose={() => setPage("overview")} />
<ServerMigrationWizard key={server.id} servers={props.servers} currentName={server.name} onCopy={props.onCopy} />
) : page === "backups" ? (
<BackupsPage key={server.id} serverId={server.id} />
) : (