Skip to content

Commit

Permalink
Add activation diagnostics message to db-shards-move
Browse files Browse the repository at this point in the history
  • Loading branch information
dimikot committed Nov 16, 2023
1 parent 1100bde commit 472de74
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,20 @@ export async function main(argv: string[]): Promise<boolean> {
activateOnDestination,
deactivateScript,
});

if (!activateOnDestination) {
log(
chalk.red(
"\n" +
"ATTENTION: the schema has been copied, but NOT activated on the destination.\n" +
"So effectively, it was a dry-run, and the data still lives in the source DB.\n" +
"\n" +
"To activate the schema on the destination and deactivate on the source, run\n" +
"the tool with --activate-on-destination flag.\n"
)
);
}

return true;
}

Expand Down

0 comments on commit 472de74

Please sign in to comment.