Users report that Discourse fails to migrate with PostgreSQL 10 due to a missing increment_by column in sequence queries, traced to the seed-fu gem. sam confirms PG 10 isn’t officially supported yet. darix identifies the issue arose after upgrading to PG 10 and suggests version-checking in code or documenting the limitation. ryanbigg notes a similar fix in the sequel gem, and darix finds a pending PR for seed-fu that resolves the issue. After testing, darix confirms migrations succeed with the fix. codinghorror asks if updated dependencies can be merged; sam proposes pulling seed-fu functionality into Discourse core to avoid recurring issues. tgxworld confirms seed-fu has been updated for PG 10 support, and darix reports successful operation in their environment, though further testing is encouraged.
I just remembered that it was really easy to check the pg version (used it in my script for the last pg security update).
if you need any PG 10 testers feel free to poke me. I was beta testing pg 10 on a less important host for a while and jumped mg production machine on the day after the release.
It is not merged in yet, I actually think we should just pull in the seed fu functionality we need into core, this keeps on breaking rails upgrade after rails upgrade and now after pg upgrades, there is like 50 lines of code we care about in this gem, maybe less.