Closed carloscip closed 1 year ago
hey @carloscip did you find any solution to this issue? I'm having it now, it seems related to the id auto-incremental and getting out-of-sync with it... but so far, I couldn't find a workaround.
same here, until now I don't have any fix or workaround.. what a shame
I believe this merged PR adresses the error:
But it's still happening on the migrateUsers.js file, I believe the same solution applies.
for (var page = 0; page * BATCH_SIZE < count; page++) {
console.log(`${source} batch #${page + 1}`);
const items = await sourceSelect
.clone()
.limit(BATCH_SIZE)
.offset(page * BATCH_SIZE)
.orderBy('id', 'asc'); // adding this line but making the if statement to check if it's postgresql
const migratedItems = migrateItems(
...
Bug report
Required System information
Describe the bug
It starts the migration process, but after a while restoring records in a specific table it gets stuck and shows this error (regarding duplicate ids, but original data does not have duplicate ids of course since its the PK):