From 734a3caf593716695a89dedd179ca2ef95f5405a Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+SamTV12345@users.noreply.github.com> Date: Sun, 24 Aug 2025 20:50:16 +0200 Subject: [PATCH] chore: adapted documentation for migrateDB.ts (#7088) --- bin/migrateDB.ts | 4 ++-- doc/cli.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/migrateDB.ts b/bin/migrateDB.ts index d1b373289..dcedf71a1 100644 --- a/bin/migrateDB.ts +++ b/bin/migrateDB.ts @@ -6,11 +6,11 @@ import settings from 'ep_etherpad-lite/node/utils/Settings'; // file1 = source, file2 = target -// pnpm run migrateDB --file1 --file2 +// pnpm run --filter bin migrateDB --file1 --file2 const arg = process.argv.slice(2); if (arg.length != 4) { - console.error('Wrong number of arguments!. Call with pnpm run migrateDB --file1 source.json target.json') + console.error('Wrong number of arguments!. Call with pnpm run --filter bin migrateDB --file1 source.json target.json') process.exit(1) } diff --git a/doc/cli.md b/doc/cli.md index b80191e14..59f2c3ed2 100644 --- a/doc/cli.md +++ b/doc/cli.md @@ -26,4 +26,4 @@ In this example we migrate from the old dirty db to the new rustydb engine. So w After that we need to move the data from dirty to rustydb. -Therefore, we call `pnpm run migrateDB --file1 test1.json --file2 test2.json` with these two files in our root directories. After some time the data should be copied over to the new database. +Therefore, we call `pnpm run --filter bin migrateDB --file1 test1.json --file2 test2.json` with these two files in our root directories. After some time the data should be copied over to the new database.