Skip to content

Newest release breaks compatibility with PostgreSQL 9.4 #8590

Closed
@raucao

Description

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.


  • I searched or browsed the repo’s other issues to ensure this is not a duplicate.
  • This bug happens on a tagged release and not on master (If you're a user, don't worry about this).

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions