PostgreSQL INSERT+CREATE TABLE
This commit is contained in:
@@ -22,6 +22,7 @@ class CreateApiKey extends Request {
|
||||
|
||||
$this->success = $sql->insert("ApiKey", array("user_id", "api_key", "valid_until"))
|
||||
->addRow($this->user->getId(), $apiKey, $validUntil)
|
||||
->returning("uid")
|
||||
->execute();
|
||||
|
||||
$this->lastError = $sql->getLastError();
|
||||
|
||||
Reference in New Issue
Block a user