diff --git a/v1Tov2Migrations/migrate_stakeholder_relations.js b/v1Tov2Migrations/migrate_stakeholder_relations.js index 9b06189..09ad38a 100644 --- a/v1Tov2Migrations/migrate_stakeholder_relations.js +++ b/v1Tov2Migrations/migrate_stakeholder_relations.js @@ -47,8 +47,8 @@ async function migrate() { await trx.table('public.entity_relationship').insert({ parent_id: parent_entity_id, child_id: child_entity_id, - type, - role, + type: type || 'default', + role: role || 'default', created_at, });