1: <?php
2:
3: use Illuminate\Database\Migrations\Migration;
4: use Illuminate\Database\Schema\Blueprint;
5: use Illuminate\Database\Capsule\Manager as Capsule;
6:
7: class AlterAdavSharedfilesTableCreateIndexes extends Migration
8: {
9: /**
10: * Run the migrations.
11: *
12: * @return void
13: */
14: public function up()
15: {
16: Capsule::schema()->table('adav_sharedfiles', function (Blueprint $table) {
17: $table->index('owner');
18: $table->index('principaluri');
19: $table->index('initiator');
20: });
21: }
22:
23: /**
24: * Reverse the migrations.
25: *
26: * @return void
27: */
28: public function down()
29: {
30: Capsule::schema()->table('adav_sharedfiles', function (Blueprint $table) {
31: $table->dropIndex(['owner']);
32: $table->dropIndex(['principaluri']);
33: $table->dropIndex(['initiator']);
34: });
35: }
36: }
37: