fixing invalid alter table, adding TYPE