mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Merge pull request #488 from appwrite/fix-db-inheritance
Fixed minor inheritance issues
This commit is contained in:
commit
2d25ea436a
2 changed files with 4 additions and 4 deletions
|
|
@ -68,7 +68,7 @@ abstract class Adapter
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
abstract public function createDocument(array $data, array $unique);
|
abstract public function createDocument(array $data = [], array $unique = []);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update Document.
|
* Update Document.
|
||||||
|
|
@ -77,7 +77,7 @@ abstract class Adapter
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
abstract public function updateDocument(array $data);
|
abstract public function updateDocument(array $data = []);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete Node.
|
* Delete Node.
|
||||||
|
|
|
||||||
|
|
@ -718,8 +718,8 @@ class MySQL extends Adapter
|
||||||
$roles = ['1=1'];
|
$roles = ['1=1'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = 'SELECT SUM(b_func.value) as result
|
$query = "SELECT SUM(b_func.value) as result
|
||||||
FROM `'.$this->getNamespace().".database.documents` a {$where}{$join}{$func}
|
FROM `".$this->getNamespace().".database.documents` a {$where}{$join}{$func}
|
||||||
WHERE status = 0
|
WHERE status = 0
|
||||||
AND (".\implode('||', $roles).')';
|
AND (".\implode('||', $roles).')';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue