mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
update last step recommand use command
This commit is contained in:
@@ -97,10 +97,8 @@ class Test extends Command
|
|||||||
*/
|
*/
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$results = NexusDB::select("select torrent, peer_id, userid, group_concat(id) as ids from peers group by torrent, peer_id, userid having(count(*)) > 1 limit 20");
|
$arr = ['aa' => ['bb' => []]];
|
||||||
dump($results);
|
dd(array_filter($arr));
|
||||||
$rep = new ToolRepository();
|
|
||||||
$rep->removeDuplicatePeer();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -225,6 +225,8 @@ if (
|
|||||||
echo $update->renderTable($header, $tableRows);
|
echo $update->renderTable($header, $tableRows);
|
||||||
echo '<div class="text-blue-500 pt-10">';
|
echo '<div class="text-blue-500 pt-10">';
|
||||||
echo sprintf('This step will merge <code>%s</code> to <code>%s</code>, then insert into database.', $tableRows[1]['label'], $tableRows[0]['label']);
|
echo sprintf('This step will merge <code>%s</code> to <code>%s</code>, then insert into database.', $tableRows[1]['label'], $tableRows[0]['label']);
|
||||||
|
echo sprintf('<div style="margin-top: 10px;">网页升级容易超时,强烈建议通过执行命令完成最后一步(如果是从1.5版本升级,务必这样做)<br/>进入:%s,执行:<code>php artisan nexus:update</code></div>', $rootpath);
|
||||||
|
echo sprintf('<div style="margin-top: 10px;">Web page upgrades tend to time out, it is highly recommended to complete the last step by executing the command (if upgrading from version 1.5, be sure to do so)<br/>cd %s, and execute: <code>php artisan nexus:update</code></div>', $rootpath);
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
if (!$mysqlInfo['match']) {
|
if (!$mysqlInfo['match']) {
|
||||||
echo sprintf('<div class="text-red-700 pt-10">MySQL version: %s is too low, please use the newest version of 5.7 or above.</div>', $mysqlInfo['version']);
|
echo sprintf('<div class="text-red-700 pt-10">MySQL version: %s is too low, please use the newest version of 5.7 or above.</div>', $mysqlInfo['version']);
|
||||||
|
|||||||
Reference in New Issue
Block a user