mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
fix
This commit is contained in:
parent
eb553fa96c
commit
134f90a464
2 changed files with 1 additions and 6 deletions
|
|
@ -205,7 +205,7 @@ function createAttribute(string $databaseId, string $collectionId, Document $att
|
|||
$dbForProject->purgeCachedDocument('database_' . $db->getInternalId(), $relatedCollection->getId());
|
||||
$dbForProject->purgeCachedCollection('database_' . $db->getInternalId() . '_collection_' . $relatedCollection->getInternalId());
|
||||
}
|
||||
var_dump($queueForDatabase);
|
||||
|
||||
$queueForDatabase
|
||||
->setType(DATABASE_TYPE_CREATE_ATTRIBUTE)
|
||||
->setDatabase($db)
|
||||
|
|
|
|||
|
|
@ -109,8 +109,6 @@ class Database extends Event
|
|||
public function trigger(): string|bool
|
||||
{
|
||||
|
||||
var_dump('database=');
|
||||
var_dump($this->getProject()->getAttribute('database'));
|
||||
|
||||
try {
|
||||
$dsn = new DSN($this->getProject()->getAttribute('database'));
|
||||
|
|
@ -119,9 +117,6 @@ class Database extends Event
|
|||
$dsn = new DSN('mysql://' . $this->getProject()->getAttribute('database'));
|
||||
}
|
||||
|
||||
var_dump('$dsn->getHost()=');
|
||||
var_dump($dsn->getHost());
|
||||
|
||||
$this->setQueue($dsn->getHost());
|
||||
|
||||
$client = new Client($this->queue, $this->connection);
|
||||
|
|
|
|||
Loading…
Reference in a new issue