Use unique IDs for migrated platforms and keys

Source and destination share dbForPlatform, so reusing the source
document IDs causes duplicate key errors.
This commit is contained in:
Prem Palanisamy
2026-02-12 12:24:45 +00:00
parent 28061ccb21
commit ed9d64b25f
+2 -2
View File
@@ -590,7 +590,7 @@ class Migrations extends Action
foreach ($platforms as $platform) {
$resource = new ResourcePlatform(
$platform->getId(),
'unique()',
$platform->getAttribute('type', ''),
$platform->getAttribute('name', ''),
$platform->getAttribute('key', ''),
@@ -635,7 +635,7 @@ class Migrations extends Action
foreach ($keys as $key) {
$resource = new ResourceKey(
$key->getId(),
'unique()',
$key->getAttribute('name', ''),
$key->getAttribute('scopes', []),
$key->getAttribute('secret', ''),