db module
This commit is contained in:
@@ -246,12 +246,11 @@ final class ModuleManager
|
|||||||
"INSERT INTO nexus_modules (name, title, version, enabled, installed_at, updated_at)
|
"INSERT INTO nexus_modules (name, title, version, enabled, installed_at, updated_at)
|
||||||
VALUES (:name, :title, :version, :enabled, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)"
|
VALUES (:name, :title, :version, :enabled, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP)"
|
||||||
);
|
);
|
||||||
$stmt->execute([
|
$stmt->bindValue(':name', $name, \PDO::PARAM_STR);
|
||||||
'name' => $name,
|
$stmt->bindValue(':title', (string)$module['title'], \PDO::PARAM_STR);
|
||||||
'title' => (string)$module['title'],
|
$stmt->bindValue(':version', (string)$module['version'], \PDO::PARAM_STR);
|
||||||
'version' => (string)$module['version'],
|
$stmt->bindValue(':enabled', false, \PDO::PARAM_BOOL);
|
||||||
'enabled' => false,
|
$stmt->execute();
|
||||||
]);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user