finish migration class
This commit is contained in:
@@ -48,12 +48,12 @@ class Update
|
||||
$setClause = implode(", ", $setParts);
|
||||
|
||||
// FINAL SQL STATEMENT
|
||||
$sqlStatement = "UPDATE $table SET $setClause";
|
||||
$update = "UPDATE $table SET $setClause";
|
||||
if($this->isConditioned()) {
|
||||
$whereClause = $this->combineConditions();
|
||||
$sqlStatement .= " WHERE $whereClause";
|
||||
$update .= " WHERE $whereClause";
|
||||
}
|
||||
return esc_sql($sqlStatement);
|
||||
return $update;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user