From d11c368eb5905f0f030508eabfac1f9c2bf9f61b Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Mon, 20 Nov 2023 16:32:26 +0100 Subject: [PATCH] Add indexes (#63) --- database/migrations/2023_01_16_000003_create_orders_table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/2023_01_16_000003_create_orders_table.php b/database/migrations/2023_01_16_000003_create_orders_table.php index 54e27f9..b139089 100644 --- a/database/migrations/2023_01_16_000003_create_orders_table.php +++ b/database/migrations/2023_01_16_000003_create_orders_table.php @@ -15,8 +15,8 @@ public function up(): void $table->string('lemon_squeezy_id')->unique(); $table->string('customer_id'); $table->uuid('identifier')->unique(); - $table->string('product_id'); - $table->string('variant_id'); + $table->string('product_id')->index(); + $table->string('variant_id')->index(); $table->integer('order_number')->unique(); $table->string('currency'); $table->integer('subtotal');