Skip to content

Commit 2262409

Browse files
committed
adds index for outcome_id + deleted_at
1 parent bd1222f commit 2262409

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
use Illuminate\Database\Migrations\Migration;
4+
use Illuminate\Database\Schema\Blueprint;
5+
use Illuminate\Support\Facades\Schema;
6+
7+
return new class extends Migration
8+
{
9+
/**
10+
* Run the migrations.
11+
*
12+
* @return void
13+
*/
14+
public function up()
15+
{
16+
Schema::table('short_url_clicks', function (Blueprint $table) {
17+
$table->index(['outcome_id', 'deleted_at'], 'clicks_url_outcome_deleted_at_index');
18+
$table->index(['short_url_id', 'outcome_id', 'deleted_at']);
19+
});
20+
}
21+
};

0 commit comments

Comments
 (0)