Skip to content

Commit ad25e60

Browse files
author
Shlomi Noach
authored
Merge pull request #83 from github/noop-verbose
noop more verbose
2 parents b4a2a3b + 4f299f3 commit ad25e60

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

go/logic/migrator.go

+5
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,11 @@ func (this *Migrator) finalCleanup() error {
11901190
if err := this.retryOperation(this.applier.DropOldTable); err != nil {
11911191
return err
11921192
}
1193+
} else {
1194+
if !this.migrationContext.Noop {
1195+
log.Infof("Am not dropping old table because I want this operation to be as live as possible. If you insist I should do it, please add `--ok-to-drop-table` next time. But I prefer you do not. To drop the old table, issue:")
1196+
log.Infof("-- drop table %s.%s", sql.EscapeName(this.migrationContext.DatabaseName), sql.EscapeName(this.migrationContext.GetOldTableName()))
1197+
}
11931198
}
11941199
if this.migrationContext.Noop {
11951200
if err := this.retryOperation(this.applier.DropGhostTable); err != nil {

0 commit comments

Comments
 (0)