Skip to content

Commit

Permalink
adds index for outcome_id + deleted_at
Browse files Browse the repository at this point in the history
  • Loading branch information
yordadev committed Sep 18, 2024
1 parent bd1222f commit 2262409
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('short_url_clicks', function (Blueprint $table) {
$table->index(['outcome_id', 'deleted_at'], 'clicks_url_outcome_deleted_at_index');
$table->index(['short_url_id', 'outcome_id', 'deleted_at']);
});
}
};

0 comments on commit 2262409

Please sign in to comment.