create pgmeta on upgrade