apcomplete/seed_scatter — pull request #1 by hungrymedia (2014-04-02 19:39:06+00:00)
Title: Add support for Postgres sequences

When reseeding harvested data, ids are inserted. Due to the way PostgreSQL handles auto_increment fields, this results in the next ID in each table's sequence from being out of sync and duplicate keys are created.

This patch resets the PG sequence for each table that has been seeded if the current adapter is 'PostgreSQL'.