Add index to activities table
This commit is contained in:
parent
dcac9809ea
commit
c877359190
1 changed files with 2 additions and 1 deletions
|
|
@ -22,6 +22,7 @@ class AddSlackNotifications extends Migration
|
|||
|
||||
Schema::table('activities', function ($table) {
|
||||
$table->foreign('client_id')->references('id')->on('clients')->onDelete('cascade');
|
||||
$table->index('payment_id');
|
||||
});
|
||||
|
||||
Schema::table('users', function ($table) {
|
||||
|
|
@ -104,6 +105,6 @@ class AddSlackNotifications extends Migration
|
|||
|
||||
Schema::table('failed_jobs', function (Blueprint $table) {
|
||||
$table->dropColumn('exception');
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue