ght/ghr suffix -> delr suffix
This commit is contained in:
parent
e9e9d6d9da
commit
24f5c6da62
@ -279,7 +279,7 @@ func (this *MigrationContext) LoadJSON(jsonString string) error {
|
|||||||
return nil
|
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) {
|
func (this *MigrationContext) ApplyResurrectedContext(other *MigrationContext) {
|
||||||
// this.MigrationRangeMinValues = other.MigrationRangeMinValues
|
// this.MigrationRangeMinValues = other.MigrationRangeMinValues
|
||||||
// this.MigrationRangeMaxValues = other.MigrationRangeMaxValues
|
// 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.
|
// GetOldTableName generates the name of the "old" table, into which the original table is renamed.
|
||||||
func (this *MigrationContext) GetOldTableName() string {
|
func (this *MigrationContext) GetOldTableName() string {
|
||||||
if this.TestOnReplica {
|
if this.TestOnReplica {
|
||||||
return fmt.Sprintf("_%s_ght", this.OriginalTableName)
|
return fmt.Sprintf("_%s_delr", this.OriginalTableName)
|
||||||
}
|
}
|
||||||
if this.MigrateOnReplica {
|
if this.MigrateOnReplica {
|
||||||
return fmt.Sprintf("_%s_ghr", this.OriginalTableName)
|
return fmt.Sprintf("_%s_delr", this.OriginalTableName)
|
||||||
}
|
}
|
||||||
return fmt.Sprintf("_%s_del", this.OriginalTableName)
|
return fmt.Sprintf("_%s_del", this.OriginalTableName)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user