Skip to content

Commit 5a3eafe

Browse files
committed
Merge commit 'd6c09aae6b0bfd7aece8a217af47be43847c0135' into develop
2 parents e5b9df5 + d6c09aa commit 5a3eafe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/Console/Commands/PaveIt.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use App\Models\Asset;
66
use App\Models\CustomField;
7-
use Schema;
7+
use Illuminate\Support\Facades\Schema;
88
use Illuminate\Support\Facades\DB;
99
use Illuminate\Console\Command;
1010

@@ -66,8 +66,8 @@ public function handle()
6666
foreach ($custom_fields as $custom_field) {
6767
$this->info('DROP the ' . $custom_field->db_column . ' column from assets as well.');
6868

69-
if (\Schema::hasColumn('assets', $custom_field->db_column)) {
70-
\Schema::table('assets', function ($table) use ($custom_field) {
69+
if (Schema::hasColumn('assets', $custom_field->db_column)) {
70+
Schema::table('assets', function ($table) use ($custom_field) {
7171
$table->dropColumn($custom_field->db_column);
7272
});
7373
}

0 commit comments

Comments
 (0)