diff --git a/src/Appwrite/Migration/Migration.php b/src/Appwrite/Migration/Migration.php index 9c6fbe6b39..c569899918 100644 --- a/src/Appwrite/Migration/Migration.php +++ b/src/Appwrite/Migration/Migration.php @@ -369,7 +369,7 @@ abstract class Migration $indexKey = array_search($indexId, array_column($indexes, '$id')); if ($indexKey === false) { - throw new Exception("Attribute {$indexId} not found"); + throw new Exception("Index {$indexId} not found"); } $index = $indexes[$indexKey]; diff --git a/src/Appwrite/Migration/Version/V19.php b/src/Appwrite/Migration/Version/V19.php index 0568ce488b..082c5c093c 100644 --- a/src/Appwrite/Migration/Version/V19.php +++ b/src/Appwrite/Migration/Version/V19.php @@ -487,7 +487,7 @@ class V19 extends Migration $this->projectDB->deleteIndex($id, '_key_uniqueKey'); $this->projectDB->deleteCachedCollection($id); } catch (\Throwable $th) { - Console::warning("'_key_function' from {$id}: {$th->getMessage()}"); + Console::warning("'_key_uniqueKey' from {$id}: {$th->getMessage()}"); } try { @@ -508,12 +508,12 @@ class V19 extends Migration $this->projectDB->renameAttribute($id, 'functionId', 'resourceId'); $this->projectDB->deleteCachedCollection($id); } catch (\Throwable $th) { - Console::warning("'resourceInternalId' from {$id}: {$th->getMessage()}"); + Console::warning("'resourceId' from {$id}: {$th->getMessage()}"); } $indexesToCreate = [ '_key_resourceInternalId', - '_key_resourceId', + '_key_resourceId_resourceType', '_key_resourceType', '_key_uniqueKey', ];