public function getUp()
{
$table = $this->obj->table;
$values = $this->obj->diff['diff']->getNewValue();
$values = array_map(function ($el) {
if (!is_null($el)) {
return "'" . addslashes($el) . "'";
} else {
return 'NULL';
}
}, $values);
return "INSERT INTO `{$table}` VALUES(" . implode(',', $values) . ");";
}