Skip to content

Commit

Permalink
Merge pull request #6 from coralsio/postgres-support
Browse files Browse the repository at this point in the history
postgres support
  • Loading branch information
saeed-corals authored Dec 8, 2023
2 parents f2ea72e + d922f64 commit 0b252bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)');
}
}
}

Expand Down
2 changes: 0 additions & 2 deletions Corals/core/User/database/seeds/RolesDatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public function run()

\DB::table('roles')->insert([
[
'id' => 1,
'name' => 'superuser',
'label' => 'Super User',
'guard_name' => config('auth.defaults.guard'),
Expand All @@ -27,7 +26,6 @@ public function run()
'updated_at' => Carbon::now(),
],
[
'id' => 2,
'name' => 'member',
'label' => 'Member',
'guard_name' => config('auth.defaults.guard'),
Expand Down

0 comments on commit 0b252bc

Please sign in to comment.