mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-06 04:34:40 -04:00
Fixes for document indexing
This commit is contained in:
parent
73f425f0ca
commit
bd6071b46e
@ -16,6 +16,10 @@ return new class extends Migration
|
|||||||
Schema::table('documents', function (Blueprint $table) {
|
Schema::table('documents', function (Blueprint $table) {
|
||||||
$table->index(['documentable_id', 'documentable_type','deleted_at']);
|
$table->index(['documentable_id', 'documentable_type','deleted_at']);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Schema::table('expenses', function (Blueprint $table) {
|
||||||
|
$table->index(['invoice_id', 'deleted_at']);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -77,11 +77,6 @@
|
|||||||
{{ ctrans('texts.name') }}
|
{{ ctrans('texts.name') }}
|
||||||
</span>
|
</span>
|
||||||
</th>
|
</th>
|
||||||
<th class="px-6 py-3 border-b border-gray-200 bg-primary text-left text-xs leading-4 font-medium text-white uppercase tracking-wider">
|
|
||||||
<span role="button" wire:click="sortBy('type')" class="cursor-pointer">
|
|
||||||
{{ ctrans('texts.type') }}
|
|
||||||
</span>
|
|
||||||
</th>
|
|
||||||
<th class="px-6 py-3 border-b border-gray-200 bg-primary text-left text-xs leading-4 font-medium text-white uppercase tracking-wider">
|
<th class="px-6 py-3 border-b border-gray-200 bg-primary text-left text-xs leading-4 font-medium text-white uppercase tracking-wider">
|
||||||
<span role="button" wire:click="sortBy('size')" class="cursor-pointer">
|
<span role="button" wire:click="sortBy('size')" class="cursor-pointer">
|
||||||
{{ ctrans('texts.size') }}
|
{{ ctrans('texts.size') }}
|
||||||
@ -102,9 +97,7 @@
|
|||||||
<td class="px-6 py-4 whitespace-nowrap text-sm leading-5 text-gray-500">
|
<td class="px-6 py-4 whitespace-nowrap text-sm leading-5 text-gray-500">
|
||||||
{{ Illuminate\Support\Str::limit($document->name, 20) }}
|
{{ Illuminate\Support\Str::limit($document->name, 20) }}
|
||||||
</td>
|
</td>
|
||||||
<td class="px-6 py-4 whitespace-nowrap text-sm leading-5 text-gray-500">
|
|
||||||
{{ App\Models\Document::$types[$document->type]['mime'] }}
|
|
||||||
</td>
|
|
||||||
<td class="px-6 py-4 whitespace-nowrap text-sm leading-5 text-gray-500">
|
<td class="px-6 py-4 whitespace-nowrap text-sm leading-5 text-gray-500">
|
||||||
{{ $document->size / 1000 }} kB
|
{{ $document->size / 1000 }} kB
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user