When trying to upgrade to the 2012-10-15 schema change release, I get the following error:
mbserver@mbserver-ngs:~/musicbrainz-server$ carton exec – ./upgrade.sh
Wed Oct 17 11:05:29 BST 2012 : Downloading cover art archive metadata
Wed Oct 17 11:05:39 BST 2012 : Catching up with cover_art_archive schema
Wed Oct 17 11:06:08 BST 2012 : Updating sequence values
Wed Oct 17 11:06:18 BST 2012 : Dropping broken indexes
Wed Oct 17 11:06:22 BST 2012 : Applying admin/sql/updates/20120220-merge-duplicate-credits.sql
ERROR: function controlled_for_whitespace(character varying) does not exist
LINE 5: WHERE NOT controlled_for_whitespace(artist_name.name);
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
The last time the database structure will have been changed on this machine will be the last schema change release.