update partition template if partition schema changes

fixed deleteById on partition table