mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge branch 'documents-db-api' into vector-db-api
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user