Skip to content

Commit 734a3ca

Browse files
authored
chore: adapted documentation for migrateDB.ts (#7088)
1 parent 5f8035e commit 734a3ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/migrateDB.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import settings from 'ep_etherpad-lite/node/utils/Settings';
66

77

88
// file1 = source, file2 = target
9-
// pnpm run migrateDB --file1 <db1.json> --file2 <db2.json>
9+
// pnpm run --filter bin migrateDB --file1 <db1.json> --file2 <db2.json>
1010
const arg = process.argv.slice(2);
1111

1212
if (arg.length != 4) {
13-
console.error('Wrong number of arguments!. Call with pnpm run migrateDB --file1 source.json target.json')
13+
console.error('Wrong number of arguments!. Call with pnpm run --filter bin migrateDB --file1 source.json target.json')
1414
process.exit(1)
1515
}
1616

doc/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ In this example we migrate from the old dirty db to the new rustydb engine. So w
2626

2727

2828
After that we need to move the data from dirty to rustydb.
29-
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.
29+
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.

0 commit comments

Comments
 (0)