my immediate reactions are:

1. where are these dupes coming from?

2. finding / correcting dupe rows should be generalizable, if you could show more specifics

On 05/31/2017 12:59 PM, Jonathan Vanasco wrote:
I doubt this exists, but I figure it is worth asking...

We recently had some schema changes, and while the schema migration ran fine we have a lot of record migrations to do.

We have a scenario like this:

     Object A now has duplicates
     Object A must be de-deduplicated, preferring the earliest occurrence
The relations of duplicates must be transitioned to Object A, if they do not already exist.

Typically the solution is for me to write a long, custom migration script. I really hate doing that and am wondering if there have been any ancillary projects in this area.

--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com <mailto:sqlalchemy+unsubscr...@googlegroups.com>. To post to this group, send email to sqlalchemy@googlegroups.com <mailto:sqlalchemy@googlegroups.com>.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

--
SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to