Change table type