Fixed network unique index

Fixed network unique index
This commit is contained in:
cp6 2022-03-05 11:57:24 +11:00
parent b4f214f376
commit 2ad4a87b3d

View File

@ -22,7 +22,7 @@ class CreateNetworkSpeedTable extends Migration
$table->char('receive_type', 4);
$table->float('receive_as_mbps');
$table->timestamps();
$table->unique(['id','server_id'], 'uni');
$table->unique(['id','server_id', 'location'], 'uni');
});
}