mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 05:00:49 +08:00
32 lines
765 B
PHP
32 lines
765 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands\Upgrade;
|
|
|
|
use Illuminate\Console\Command;
|
|
use Nexus\Database\NexusDB;
|
|
|
|
class UpdateSnatchedBuyLogId extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'upgrade:migrate_snatched_buy_log_id';
|
|
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Command description';
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*/
|
|
public function handle()
|
|
{
|
|
NexusDB::statement("UPDATE snatched INNER JOIN torrent_buy_logs ON snatched.userid = torrent_buy_logs.uid AND snatched.torrentid = torrent_buy_logs.torrent_id SET snatched.buy_log_id = torrent_buy_logs.id");
|
|
}
|
|
}
|