added class index to reports/widgets

This commit is contained in:
Denis Duliçi
2021-04-01 11:48:11 +03:00
parent 97d7abf13a
commit e62504a546
3 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CoreV219 extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('reports', function (Blueprint $table) {
$table->index('class');
});
Schema::table('widgets', function (Blueprint $table) {
$table->index('class');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}