mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add index to activities table
This commit is contained in:
parent
dcac9809ea
commit
c877359190
@ -22,6 +22,7 @@ class AddSlackNotifications extends Migration
|
|||||||
|
|
||||||
Schema::table('activities', function ($table) {
|
Schema::table('activities', function ($table) {
|
||||||
$table->foreign('client_id')->references('id')->on('clients')->onDelete('cascade');
|
$table->foreign('client_id')->references('id')->on('clients')->onDelete('cascade');
|
||||||
|
$table->index('payment_id');
|
||||||
});
|
});
|
||||||
|
|
||||||
Schema::table('users', function ($table) {
|
Schema::table('users', function ($table) {
|
||||||
@ -104,6 +105,6 @@ class AddSlackNotifications extends Migration
|
|||||||
|
|
||||||
Schema::table('failed_jobs', function (Blueprint $table) {
|
Schema::table('failed_jobs', function (Blueprint $table) {
|
||||||
$table->dropColumn('exception');
|
$table->dropColumn('exception');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user