From 24f5c6da6281987cbf33277c09fb25b4b0be1277 Mon Sep 17 00:00:00 2001 From: Shlomi Noach Date: Thu, 29 Dec 2016 10:23:48 +0200 Subject: [PATCH] ght/ghr suffix -> delr suffix --- go/base/context.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/go/base/context.go b/go/base/context.go index 1514504..79f67e9 100644 --- a/go/base/context.go +++ b/go/base/context.go @@ -279,7 +279,7 @@ func (this *MigrationContext) LoadJSON(jsonString string) error { return nil } -// GetGhostTableName generates the name of ghost table, based on original table name +// ApplyResurrectedContext loads resurrection-related infor from given context func (this *MigrationContext) ApplyResurrectedContext(other *MigrationContext) { // this.MigrationRangeMinValues = other.MigrationRangeMinValues // this.MigrationRangeMaxValues = other.MigrationRangeMaxValues @@ -303,10 +303,10 @@ func (this *MigrationContext) GetGhostTableName() string { // GetOldTableName generates the name of the "old" table, into which the original table is renamed. func (this *MigrationContext) GetOldTableName() string { if this.TestOnReplica { - return fmt.Sprintf("_%s_ght", this.OriginalTableName) + return fmt.Sprintf("_%s_delr", this.OriginalTableName) } if this.MigrateOnReplica { - return fmt.Sprintf("_%s_ghr", this.OriginalTableName) + return fmt.Sprintf("_%s_delr", this.OriginalTableName) } return fmt.Sprintf("_%s_del", this.OriginalTableName) }