diff --git a/store/sqlstore/store.go b/store/sqlstore/store.go index aa334dc5aa..eb452655c9 100644 --- a/store/sqlstore/store.go +++ b/store/sqlstore/store.go @@ -920,7 +920,11 @@ func (ss *SqlStore) AlterColumnTypeIfExists(tableName string, columnName string, } if err != nil { - mlog.Critical("Failed to alter column type", mlog.Err(err)) + msg := "Failed to alter column type." + if mySqlColType == "JSON" && postgresColType == "jsonb" { + msg += " It is likely you have invalid JSON values in the column. Please fix the values manually and run the migration again." + } + mlog.Critical(msg, mlog.Err(err)) time.Sleep(time.Second) os.Exit(ExitAlterColumn) }