Fix updating old DB code.

This commit is contained in:
Yang Luo
2021-12-24 00:36:53 +08:00
parent f4890a6a22
commit 3818492065
4 changed files with 76 additions and 9 deletions

View File

@ -158,3 +158,11 @@ func DeleteSyncer(syncer *Syncer) bool {
func (syncer *Syncer) GetId() string {
return fmt.Sprintf("%s/%s", syncer.Owner, syncer.Name)
}
func (syncer *Syncer) getTableColumnsTypeMap() map[string]string {
m := map[string]string{}
for _, tableColumn := range syncer.TableColumns {
m[tableColumn.Name] = tableColumn.Type
}
return m
}