From 2bb6b0a2a92b9e976dd8038fccadf1e98b9faa2e Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Fri, 31 Oct 2025 16:45:01 +0530 Subject: [PATCH] updated database dsn for create in the create database --- .../Platform/Modules/Databases/Http/Databases/Create.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php index 29324f2684..6288ebd43a 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php @@ -120,10 +120,10 @@ class Create extends Action try { $dbForProject->createCollection('database_' . $database->getSequence(), $attributes, $indexes); - $dbFordatabases = $getDatabasesDB($database); // legacy and tablesdb are created on the same project database // need to check for multitype databases if ($this->getDatabaseType() !== TABLESDB && $this->getDatabaseType() !== 'legacy') { + $dbFordatabases = $getDatabasesDB($this->getDatabaseDSN($project)); $dbFordatabases->create(); } } catch (DuplicateException) {