<?php
-use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
class AddSearchIndexes extends Migration
{
$chapters = $sm->listTableDetails('chapters');
if ($pages->hasIndex('search')) {
- Schema::table('pages', function(Blueprint $table) {
+ Schema::table('pages', function (Blueprint $table) {
$table->dropIndex('search');
});
}
if ($books->hasIndex('search')) {
- Schema::table('books', function(Blueprint $table) {
+ Schema::table('books', function (Blueprint $table) {
$table->dropIndex('search');
});
}
if ($chapters->hasIndex('search')) {
- Schema::table('chapters', function(Blueprint $table) {
+ Schema::table('chapters', function (Blueprint $table) {
$table->dropIndex('search');
});
}
-
}
}