Skip to content

Commit 0aa9131

Browse files
committed
fix(migrate): include backup path in rollback command
1 parent c09cc35 commit 0aa9131

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/migrate-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export async function handleMigrateCommand(args: string[]): Promise<void> {
8787
if (dryRun) {
8888
console.log(' Run without --dry-run to apply changes');
8989
} else {
90-
console.log(' Rollback: ccs migrate --rollback');
90+
console.log(` Rollback: ccs migrate --rollback ${result.backupPath}`);
9191
}
9292
console.log('');
9393
} else {

src/config/migration-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ export async function autoMigrate(): Promise<void> {
353353
console.log(` [!] ${warning}`);
354354
}
355355
}
356-
console.log(' Rollback: ccs migrate --rollback');
356+
console.log(` Rollback: ccs migrate --rollback ${result.backupPath}`);
357357
console.log('');
358358
} else {
359359
console.log('');

0 commit comments

Comments
 (0)