| 112 | "(?i)^ALTER\\s+TABLE\\s+(?:`(?:[^`]|``)*`|\\S+)\\.(?:`(?:[^`]|``)*`|\\S+)\\s+(.+?)\\s*;?\\s*$") |
| 113 | |
| 114 | type MysqlDataAbnormalFixStruct struct { |
| 115 | Schema string |
| 116 | Table string |
| 117 | RowData string |
| 118 | SourceDevice string |
| 119 | DestDevice string |
| 120 | Sqlwhere string |
| 121 | IndexColumnType string |
| 122 | ColData []map[string]string |
| 123 | IndexType string |
| 124 | IndexColumn []string |
| 125 | DatafixType string |
| 126 | SourceSchema string // 添加源端schema字段 |
| 127 | CaseSensitiveObjectName string // 是否区分对象名大小写 |
| 128 | IndexVisibilityMap map[string]string // 索引可见性信息 |
| 129 | ForeignKeyDefinitions map[string]string // 外键DDL定义信息 |
| 130 | DestFlavor global.DatabaseFlavor // 目标端数据库类型,用于生成兼容目标端语法的 fix SQL |
| 131 | PartitionColumns []string // 分区列列表,用于分区表主键修复 |
| 132 | } |
| 133 | |
| 134 | type foreignKeyColumn struct { |
| 135 | ordinalPosition int |
nothing calls this directly
no outgoing calls
no test coverage detected