Add activities index

This commit is contained in:
Hillel Coren 2018-01-01 23:10:40 +02:00
parent 15eb26e855
commit 30dbd1fda5
2 changed files with 12 additions and 0 deletions

View File

@ -95,6 +95,12 @@ class AddSubdomainToLookups extends Migration
Schema::table('accounts', function ($table) { Schema::table('accounts', function ($table) {
$table->boolean('inclusive_taxes')->default(0); $table->boolean('inclusive_taxes')->default(0);
}); });
if (Utils::isNinja()) {
Schema::table('activities', function ($table) {
$table->index('user_id');
});
}
} }
/** /**

View File

@ -95,6 +95,12 @@ class AddRemember2faToken extends Migration
where invoices.id = activities.invoice_id where invoices.id = activities.invoice_id
and invoices.is_recurring = 0 and invoices.is_recurring = 0
and invoices.invoice_type_id = 2"); and invoices.invoice_type_id = 2");
if (! Utils::isNinja()) {
Schema::table('activities', function ($table) {
$table->index('user_id');
});
}
} }
/** /**