Add index to payment hashes

This commit is contained in:
David Bomba 2022-07-10 10:01:27 +10:00
parent 0a717f5ad5
commit 3ad3a2d8ea

View File

@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddIndexToPaymentHash extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('payment_hashes', function (Blueprint $table) {
$table->string('hash', 255)->index()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
}
}