Skip to content

Commit

Permalink
Found that the site_merge was changing null to 0 on PowerPorts Connec…
Browse files Browse the repository at this point in the history
…tedDeviceID, so added a SQL statement to flip those back.
  • Loading branch information
samilliken committed May 27, 2024
1 parent 1d62f23 commit 39adeb8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion site_merge.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,4 +511,10 @@
":ConnectedPort"=>$row["ConnectedPort"],
":Notes"=>$row["Notes"] );
$pwrPortStmt->execute( $params );
}
}

# null values are being translated to 0, so run a quick SQL statement to reset those on the PowerPorts

$sql = "update fac_PowerPorts set ConnectedDeviceID=null, ConnectedPort=null where ConnectedDeviceID=0";
$stmt = $childDBH->prepare( $sql );
$stmt->execute();

0 comments on commit 39adeb8

Please sign in to comment.