From 4f299f320eb66db58b68f330e0413b02662d2d54 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Mon, 27 Jun 2016 08:49:26 +0200 Subject: [PATCH] noop more verbose --- go/logic/migrator.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/go/logic/migrator.go b/go/logic/migrator.go index dbfdbea..3d23f1a 100644 --- a/go/logic/migrator.go +++ b/go/logic/migrator.go @@ -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 {