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'); + }); + } +}