File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,10 @@ class CreateAuditsTable extends Migration
14
14
*/
15
15
public function up()
16
16
{
17
- Schema::create('audits', function (Blueprint $table) {
17
+ Schema::connection(config('audit.drivers.database.connection', config('database.default')))->create('audits', function (Blueprint $table) {
18
+
18
19
$morphPrefix = Config::get('audit.user.morph_prefix', 'user');
19
-
20
+
20
21
$table->bigIncrements('id');
21
22
$table->string($morphPrefix . '_type')->nullable();
22
23
$table->unsignedBigInteger($morphPrefix . '_id')->nullable();
@@ -41,6 +42,6 @@ class CreateAuditsTable extends Migration
41
42
*/
42
43
public function down()
43
44
{
44
- Schema::drop('audits');
45
+ Schema::connection(config('audit.drivers.database.connection', config('database.default')))-> drop('audits');
45
46
}
46
47
}
You can’t perform that action at this time.
0 commit comments