fix template update for partitioned tables