Fixed invalid upgrade ddls: wrong table, invalid alter statement