mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-20 14:30:55 -04:00
Add activities index
This commit is contained in:
parent
15eb26e855
commit
30dbd1fda5
@ -95,6 +95,12 @@ class AddSubdomainToLookups extends Migration
|
||||
Schema::table('accounts', function ($table) {
|
||||
$table->boolean('inclusive_taxes')->default(0);
|
||||
});
|
||||
|
||||
if (Utils::isNinja()) {
|
||||
Schema::table('activities', function ($table) {
|
||||
$table->index('user_id');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -95,6 +95,12 @@ class AddRemember2faToken extends Migration
|
||||
where invoices.id = activities.invoice_id
|
||||
and invoices.is_recurring = 0
|
||||
and invoices.invoice_type_id = 2");
|
||||
|
||||
if (! Utils::isNinja()) {
|
||||
Schema::table('activities', function ($table) {
|
||||
$table->index('user_id');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user