(charset string)
| 350 | } |
| 351 | |
| 352 | func (mctx *MigrationContext) SetConnectionCharset(charset string) { |
| 353 | if charset == "" { |
| 354 | charset = "utf8mb4,utf8,latin1" |
| 355 | } |
| 356 | |
| 357 | mctx.InspectorConnectionConfig.Charset = charset |
| 358 | mctx.ApplierConnectionConfig.Charset = charset |
| 359 | } |
| 360 | |
| 361 | func getSafeTableName(baseName string, suffix string) string { |
| 362 | name := fmt.Sprintf("_%s_%s", baseName, suffix) |