diff --git a/database/migrations/2026_02_13_092247_add_composite_index_to_quotes_table.php b/database/migrations/2026_02_13_092247_add_composite_index_to_quotes_table.php new file mode 100644 index 0000000..dfc7c56 --- /dev/null +++ b/database/migrations/2026_02_13_092247_add_composite_index_to_quotes_table.php @@ -0,0 +1,28 @@ +index(['tenant_id', 'registration_date', 'id'], 'idx_quotes_tenant_registration_id'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('quotes', function (Blueprint $table) { + $table->dropIndex('idx_quotes_tenant_registration_id'); + }); + } +};