Permalink
Browse files

Update create_activity_log_table.php.stub (#434)

When running `php artisan make:model xxx -mcr` it will create a migration file with the "use Schema" line, as well as "dropIfExists".
These improvements don't fix a problem, but do solve the yellow highlight in phpstorm, as well as fix errors when manual removing the table and running `php artisan migrate:refresh`
  • Loading branch information...
JBtje authored and freekmurze committed Sep 23, 2018
1 parent 354cf71 commit 7eddeb8499029c63151755f96068370b7a1f3b07
Showing with 2 additions and 1 deletion.
  1. +2 −1 migrations/create_activity_log_table.php.stub
@@ -1,5 +1,6 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
@@ -30,6 +31,6 @@ class CreateActivityLogTable extends Migration
*/
public function down()
{
Schema::drop(config('activitylog.table_name'));
Schema::dropIfExists(config('activitylog.table_name'));
}
}

0 comments on commit 7eddeb8

Please sign in to comment.