mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
improve claim settle
This commit is contained in:
@@ -13,6 +13,9 @@ return new class extends Migration
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
if (Schema::hasTable('claims')) {
|
||||
return;
|
||||
}
|
||||
Schema::create('claims', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('uid');
|
||||
@@ -20,7 +23,7 @@ return new class extends Migration
|
||||
$table->integer('snatched_id')->index();
|
||||
$table->bigInteger('seed_time_begin')->default(0);
|
||||
$table->bigInteger('uploaded_begin')->default(0);
|
||||
$table->dateTime('last_settle_at')->nullable();
|
||||
$table->dateTime('last_settle_at')->nullable()->index();
|
||||
$table->timestamps();
|
||||
$table->unique(['uid', 'torrent_id']);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user