GetChangelogTableName generates the name of changelog table, based on original table name or a given table name.
()
| 407 | // GetChangelogTableName generates the name of changelog table, based on original table name |
| 408 | // or a given table name. |
| 409 | func (mctx *MigrationContext) GetChangelogTableName() string { |
| 410 | if mctx.ForceTmpTableName != "" { |
| 411 | return getSafeTableName(mctx.ForceTmpTableName, "ghc") |
| 412 | } else { |
| 413 | return getSafeTableName(mctx.OriginalTableName, "ghc") |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | // GetCheckpointTableName generates the name of checkpoint table. |
| 418 | func (mctx *MigrationContext) GetCheckpointTableName() string { |