diff --git a/database/migrations/2022_10_10_070137_add_documentable_index.php b/database/migrations/2022_10_10_070137_add_documentable_index.php index 95d125842d..b590015e88 100644 --- a/database/migrations/2022_10_10_070137_add_documentable_index.php +++ b/database/migrations/2022_10_10_070137_add_documentable_index.php @@ -13,13 +13,24 @@ return new class extends Migration */ public function up() { - Schema::table('documents', function (Blueprint $table) { + Schema::table('documents', function (Blueprint $table) { $table->index(['documentable_id', 'documentable_type','deleted_at']); - }); + }); - Schema::table('expenses', function (Blueprint $table) { + Schema::table('expenses', function (Blueprint $table) { $table->index(['invoice_id', 'deleted_at']); - }); + }); + + Schema::table('company_tokens', function (Blueprint $table) { + $table->dropIndex('company_tokens_token_index'); + $table->index(['token','deleted_at']); + }); + + Schema::table('invoice_invitations', function (Blueprint $table) { + $table->dropIndex('invoice_invitations_key_index'); + $table->index(['key','deleted_at']); + }); + } /**