Page MenuHomePhorge

D5307.1775264613.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D5307.1775264613.diff

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

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)

Event Timeline