Renamed multiple database tables
This commit is contained in:
@@ -13,7 +13,7 @@ class API_users extends API
|
||||
{
|
||||
public function getUser($returnBoolean = false)
|
||||
{
|
||||
list($query, $types, $params) = $this->buildDynamicQuery('vc_users');
|
||||
list($query, $types, $params) = $this->buildDynamicQuery('system_users');
|
||||
|
||||
$items = $this->generalGetFunction($query, $types, $params, $returnBoolean, 'User');
|
||||
|
||||
@@ -34,7 +34,7 @@ class API_users extends API
|
||||
$this->apiOutput(400, ['error' => 'You cannot make an user with an lower weight then yourself!']);
|
||||
}
|
||||
|
||||
$query = "INSERT INTO vc_users (
|
||||
$query = "INSERT INTO system_users (
|
||||
user_uuid, user_group_uuid, user_email, user_first_name, user_last_name, user_full_name,
|
||||
user_phone_number, user_password, user_password_reset_token, user_password_reset_expires,
|
||||
user_two_factor_enabled, user_two_factor_secret, user_status,
|
||||
@@ -110,7 +110,7 @@ The Sentri gnomes';
|
||||
$this->apiOutput(400, ['error' => 'You cannot edit a user with an lower weight then yourself!']);
|
||||
}
|
||||
|
||||
$query = "UPDATE vc_users SET user_group_uuid = ?, user_email = ?, user_first_name = ?, user_last_name = ?, user_full_name = ?, user_phone_number = ?, user_status = ?, user_pref_language = ?, user_modified_timestamp = ?, user_stompable = ? WHERE user_uuid = ?";
|
||||
$query = "UPDATE system_users SET user_group_uuid = ?, user_email = ?, user_first_name = ?, user_last_name = ?, user_full_name = ?, user_phone_number = ?, user_status = ?, user_pref_language = ?, user_modified_timestamp = ?, user_stompable = ? WHERE user_uuid = ?";
|
||||
$stmt = $this->prepareStatement($query);
|
||||
$stmt->bind_param('ssssssssiis', $this->data['user_group_uuid'], $this->data['user_email'], $this->data['user_first_name'], $this->data['user_last_name'], $this->data['user_full_name'], $this->data['user_phone_number'], $this->data['user_status'], $this->data['user_pref_language'], time(), $this->data['user_stompable'], $this->data['user_uuid']);
|
||||
|
||||
@@ -140,7 +140,7 @@ The Sentri gnomes';
|
||||
}
|
||||
|
||||
|
||||
$query = "DELETE FROM vc_users WHERE user_uuid = ?";
|
||||
$query = "DELETE FROM system_users WHERE user_uuid = ?";
|
||||
$stmt = $this->prepareStatement($query);
|
||||
$stmt->bind_param('s', $this->data['user_uuid']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user