]> BookStack Code Mirror - bookstack/blob - database/migrations/2020_09_19_094251_add_activity_indexes.php
Lexical: Updated URL handling, added mouse handling
[bookstack] / database / migrations / 2020_09_19_094251_add_activity_indexes.php
1 <?php
2
3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
6
7 return new class extends Migration
8 {
9     /**
10      * Run the migrations.
11      */
12     public function up(): void
13     {
14         Schema::table('activities', function (Blueprint $table) {
15             $table->index('key');
16             $table->index('created_at');
17         });
18     }
19
20     /**
21      * Reverse the migrations.
22      */
23     public function down(): void
24     {
25         Schema::table('activities', function (Blueprint $table) {
26             $table->dropIndex('activities_key_index');
27             $table->dropIndex('activities_created_at_index');
28         });
29     }
30 };