Re: Postgresql Sequence update on data migration

2022-05-25 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
gt;> *From:* django-developers@googlegroups.com < >> django-developers@googlegroups.com> *On Behalf Of *mohamad ali mehdizadeh >> *Sent:* Wednesday, May 25, 2022 1:23 AM >> *To:* Django developers (Contributions to Django itself) < >> django-developers@googlegr

Re: Postgresql Sequence update on data migration

2022-05-25 Thread mohammad ali mehdizadeh
ango-developers@googlegroups.com> > *Subject:* Postgresql Sequence update on data migration > > > > I have a migration from an old table to a new table, so when I migrate > also data of old table, I try to keep PrimaryKey values the same as old > table. so every thing go well un

RE: Postgresql Sequence update on data migration

2022-05-25 Thread Matthew Pava
, 2022 1:23 AM To: Django developers (Contributions to Django itself) Subject: Postgresql Sequence update on data migration I have a migration from an old table to a new table, so when I migrate also data of old table, I try to keep PrimaryKey values the same as old table. so every thing go well

Postgresql Sequence update on data migration

2022-05-25 Thread mohamad ali mehdizadeh
I have a migration from an old table to a new table, so when I migrate also data of old table, I try to keep PrimaryKey values the same as old table. so every thing go well until I see primary key duplicate value errors from Postgresql, I check it and so the Sequence of the new table was not