noop more verbose
This commit is contained in:
parent
e0de69b028
commit
4f299f320e
@ -1190,6 +1190,11 @@ func (this *Migrator) finalCleanup() error {
|
||||
if err := this.retryOperation(this.applier.DropOldTable); err != nil {
|
||||
return err
|
||||
}
|
||||
} else {
|
||||
if !this.migrationContext.Noop {
|
||||
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:")
|
||||
log.Infof("-- drop table %s.%s", sql.EscapeName(this.migrationContext.DatabaseName), sql.EscapeName(this.migrationContext.GetOldTableName()))
|
||||
}
|
||||
}
|
||||
if this.migrationContext.Noop {
|
||||
if err := this.retryOperation(this.applier.DropGhostTable); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user