From ff219cf91ad3948353655757471953dda6b57593 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Mon, 27 Jun 2022 18:26:24 +0200 Subject: [PATCH] fix: project internal id migration --- src/Appwrite/Migration/Version/V14.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Migration/Version/V14.php b/src/Appwrite/Migration/Version/V14.php index a7627d859c..f8edf4d890 100644 --- a/src/Appwrite/Migration/Version/V14.php +++ b/src/Appwrite/Migration/Version/V14.php @@ -187,7 +187,7 @@ class V14 extends Migration /** * Update metadata table. */ - $this->pdo->prepare("UPDATE `{$this->projectDB->getDefaultDatabase()}`.`_{$internalId}__metadata` + $this->pdo->prepare("UPDATE `{$this->projectDB->getDefaultDatabase()}`.`_{$this->project->getInternalId()}__metadata` SET _uid = 'database_1_collection_{$internalId}', name = 'database_1_collection_{$internalId}'