mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge pull request #1111 from TorstenDittmann/fix-migration-errors
fix(migration): prevent throwing error when document is missing ID
This commit is contained in:
@@ -87,7 +87,8 @@ abstract class Migration
|
||||
$new = call_user_func($callback, $document);
|
||||
|
||||
if (empty($new->getId())) {
|
||||
throw new Exception('Missing ID');
|
||||
Console::warning('Skipped Document due to missing ID.');
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$this->check_diff_multi($new->getArrayCopy(), $old)) {
|
||||
|
||||
Reference in New Issue
Block a user