Merge branch 'documents-db-api' into vector-db-api

This commit is contained in:
ArnabChatterjee20k
2025-11-06 17:52:14 +05:30
@@ -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;
@@ -128,12 +127,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(new Document(['database' => $this->getDatabaseDSN($project)]));
// $dbFordatabases->createCollection(Database::METADATA,$attributes);
}
} catch (DuplicateException) {
throw new Exception(Exception::DATABASE_ALREADY_EXISTS);
} catch (IndexException) {