diff --git a/Corals/core/Foundation/database/migrations/2018_01_02_152913_create_fulltext_search_table.php b/Corals/core/Foundation/database/migrations/2018_01_02_152913_create_fulltext_search_table.php index 346f6800..32ee2020 100644 --- a/Corals/core/Foundation/database/migrations/2018_01_02_152913_create_fulltext_search_table.php +++ b/Corals/core/Foundation/database/migrations/2018_01_02_152913_create_fulltext_search_table.php @@ -30,8 +30,10 @@ public function up() $table->timestamps(); }); - \DB::statement('ALTER TABLE fulltext_search ADD FULLTEXT fulltext_title(indexed_title)'); - \DB::statement('ALTER TABLE fulltext_search ADD FULLTEXT fulltext_title_content(indexed_title, indexed_content)'); + if (\Illuminate\Support\Facades\DB::connection()->getConfig()['name'] == 'mysql') { + \DB::statement('ALTER TABLE fulltext_search ADD FULLTEXT fulltext_title(indexed_title)'); + \DB::statement('ALTER TABLE fulltext_search ADD FULLTEXT fulltext_title_content(indexed_title, indexed_content)'); + } } } diff --git a/Corals/core/User/database/seeds/RolesDatabaseSeeder.php b/Corals/core/User/database/seeds/RolesDatabaseSeeder.php index 5f13108c..42327ad8 100644 --- a/Corals/core/User/database/seeds/RolesDatabaseSeeder.php +++ b/Corals/core/User/database/seeds/RolesDatabaseSeeder.php @@ -18,7 +18,6 @@ public function run() \DB::table('roles')->insert([ [ - 'id' => 1, 'name' => 'superuser', 'label' => 'Super User', 'guard_name' => config('auth.defaults.guard'), @@ -27,7 +26,6 @@ public function run() 'updated_at' => Carbon::now(), ], [ - 'id' => 2, 'name' => 'member', 'label' => 'Member', 'guard_name' => config('auth.defaults.guard'),