Fixed a bug in postgres block upgrade script messing up with block ids (Merged from 15_STABLE)
Fixed a bug in postgres block upgrade script messing up with block ids (Merged from 15_STABLE)

dilawar/moodle