migration-tool
migration-tool copied to clipboard
Error when Migrating Relations Field id in collection is a primary key
Managed to fix most problems, but got stuck on this one:
V9 =>
/relations
undefined
undefined
V9 <=
400
{
"errors": [
{
"message": "Field \"id\" in collection \"songs_directus_midis\" is a primary key",
"extensions": {
"code": "INVALID_PAYLOAD"
}
}
]
}
Error:
V9 =>
/relations
undefined
undefined
V9 <=
400
{
"errors": [
{
"message": "Field \"id\" in collection \"songs_directus_midis\" is a primary key",
"extensions": {
"code": "INVALID_PAYLOAD"
}
}
]
}
at file:///Users/arillo/dev/aibeatz/backups/migration-tool/api.js:41:9
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async migrateRelationsData (file:///Users/arillo/dev/aibeatz/backups/migration-tool/tasks/relations.js:108:3)
Perhaps somebody can point me into the proper direction on how to fix this error when migrating relations? Thanks.