We're on an older LTS of Ubuntu, which only gets 9.4 by default. Until v2.5.0 it worked without problems, but the migrations for the latest release include one with an upsert statement, which is only available in postgres 9.5 and newer:
https://github.com/tootsuite/mastodon/blob/master/db/migrate/20180812173710_copy_status_stats.rb#L12-L13
I looked into upgrading postgres on this server, but it would be too difficult with our current setup. Would be great if this migration could be refactored to also work on 9.4, because everything else in Mastodon seems to be compatible.
We're on an older LTS of Ubuntu, which only gets 9.4 by default. Until v2.5.0 it worked without problems, but the migrations for the latest release include one with an upsert statement, which is only available in postgres 9.5 and newer:
https://github.com/tootsuite/mastodon/blob/master/db/migrate/20180812173710_copy_status_stats.rb#L12-L13
I looked into upgrading postgres on this server, but it would be too difficult with our current setup. Would be great if this migration could be refactored to also work on 9.4, because everything else in Mastodon seems to be compatible.
master(If you're a user, don't worry about this).