diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index 36d8a26328..ff6a341df9 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -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', ''),