From 6db0003e3f0a8ffcd82b3fc0fb73fda821fcdeb0 Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Thu, 21 Aug 2025 13:44:14 +0100 Subject: [PATCH] Adds a 'created_at' index to the models table --- ..._190617_add_created_at_index_to_models.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 database/migrations/2025_08_20_190617_add_created_at_index_to_models.php diff --git a/database/migrations/2025_08_20_190617_add_created_at_index_to_models.php b/database/migrations/2025_08_20_190617_add_created_at_index_to_models.php new file mode 100644 index 0000000000..5a73a94f3b --- /dev/null +++ b/database/migrations/2025_08_20_190617_add_created_at_index_to_models.php @@ -0,0 +1,28 @@ +index(['created_at']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('models', function (Blueprint $table) { + $table->dropIndex(['created_at']); + }); + } +};