Skip to content

Commit

Permalink
Update 2017_02_12_102845_create_logger_table.php
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfensdrfer authored Apr 3, 2020
1 parent e56d765 commit 25f2312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrations/2017_02_12_102845_create_logger_table.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class CreateLoggerTable extends Migration
*/
public function up()
{
if (env('LOG_DATABASE', false) !== false) {
if (env('LOG_DATABASE', false) !== false && Schema::connection(env('LOG_DATABASE', config('database.default')))->hasTable(env('LOG_TABLE', 'logs')) === false) {
Schema::connection(env('LOG_DATABASE', config('database.default')))->create(env('LOG_TABLE', 'logs'), function (Blueprint $table) {
$table->bigIncrements('id');

Expand Down

0 comments on commit 25f2312

Please sign in to comment.