From 81128e84467aa2301b442894b95c1d372dd3c366 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Thu, 6 Nov 2025 17:51:33 +0530 Subject: [PATCH] reverted changes --- .../Platform/Modules/Databases/Http/Databases/Create.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php index 6288ebd43a..d179801eb2 100644 --- a/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php +++ b/src/Appwrite/Platform/Modules/Databases/Http/Databases/Create.php @@ -4,7 +4,6 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases; use Appwrite\Event\Event; use Appwrite\Extend\Exception; -use Appwrite\Platform\Modules\Databases\Services\Registry\TablesDB; use Appwrite\SDK\AuthType; use Appwrite\SDK\ContentType; use Appwrite\SDK\Deprecated; @@ -120,12 +119,6 @@ class Create extends Action try { $dbForProject->createCollection('database_' . $database->getSequence(), $attributes, $indexes); - // 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) { throw new Exception(Exception::DATABASE_ALREADY_EXISTS); } catch (IndexException) {