From 9e4ad61e2b962dbbe310cc8378146f27e2ab8064 Mon Sep 17 00:00:00 2001 From: Iuri de Silvio Date: Thu, 21 Dec 2017 08:44:24 -0200 Subject: [PATCH] create api quota index --- ...17_12_21_095425_create_api_quota_index.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 database/migrations/2017_12_21_095425_create_api_quota_index.php diff --git a/database/migrations/2017_12_21_095425_create_api_quota_index.php b/database/migrations/2017_12_21_095425_create_api_quota_index.php new file mode 100644 index 0000000..471ec41 --- /dev/null +++ b/database/migrations/2017_12_21_095425_create_api_quota_index.php @@ -0,0 +1,36 @@ +index( + ['created_at', 'creator', 'is_api'], + 'api_quota_index' + ); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('links', function (Blueprint $table) + { + $table->dropIndex('api_quota_index'); + }); + } +}