updated database dsn for create in the create database

This commit is contained in:
ArnabChatterjee20k
2025-10-31 16:45:01 +05:30
parent 5d9ef0dcca
commit 2bb6b0a2a9
@@ -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) {