mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
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:
@@ -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', ''),
|
||||
|
||||
Reference in New Issue
Block a user