Change the table name from device lines to keys.

This commit is contained in:
markjcrane 2015-07-07 14:44:14 -03:00
parent 32b511cd64
commit b2cdce4940
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ if ($domains_processed == 1) {
$s->execute(); $s->execute();
$device_keys = $s->fetchAll(PDO::FETCH_ASSOC); $device_keys = $s->fetchAll(PDO::FETCH_ASSOC);
foreach ($device_keys as &$row) { foreach ($device_keys as &$row) {
$sql = "update v_device_lines "; $sql = "update v_device_keys ";
$sql .= "set device_key_vendor = '".$row["device_vendor"]."' "; $sql .= "set device_key_vendor = '".$row["device_vendor"]."' ";
$sql .= "where device_key_uuid = '".$row["device_key_uuid"]."';\n "; $sql .= "where device_key_uuid = '".$row["device_key_uuid"]."';\n ";
$db->exec(check_sql($sql)); $db->exec(check_sql($sql));