Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117798805
D5307.1775264613.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D5307.1775264613.diff
View Options
diff --git a/src/database/migrations/2025_06_04_100000_add_transactions_type_index.php b/src/database/migrations/2025_06_04_100000_add_transactions_type_index.php
new file mode 100644
--- /dev/null
+++ b/src/database/migrations/2025_06_04_100000_add_transactions_type_index.php
@@ -0,0 +1,33 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration {
+ /**
+ * Run the migrations.
+ */
+ public function up(): void
+ {
+ Schema::table(
+ 'transactions',
+ static function (Blueprint $table) {
+ $table->index(['type'], 'type_idx');
+ }
+ );
+ }
+
+ /**
+ * Reverse the migrations.
+ */
+ public function down(): void
+ {
+ Schema::table(
+ 'transactions',
+ static function (Blueprint $table) {
+ $table->dropIndex('type_idx');
+ }
+ );
+ }
+};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 4, 1:03 AM (1 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18827522
Default Alt Text
D5307.1775264613.diff (1 KB)
Attached To
Mode
D5307: Add an index to speed up count queries on transactions by type
Attached
Detach File
Event Timeline