We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e5b9df5 + d6c09aa commit 5a3eafeCopy full SHA for 5a3eafe
app/Console/Commands/PaveIt.php
@@ -4,7 +4,7 @@
4
5
use App\Models\Asset;
6
use App\Models\CustomField;
7
-use Schema;
+use Illuminate\Support\Facades\Schema;
8
use Illuminate\Support\Facades\DB;
9
use Illuminate\Console\Command;
10
@@ -66,8 +66,8 @@ public function handle()
66
foreach ($custom_fields as $custom_field) {
67
$this->info('DROP the ' . $custom_field->db_column . ' column from assets as well.');
68
69
- if (\Schema::hasColumn('assets', $custom_field->db_column)) {
70
- \Schema::table('assets', function ($table) use ($custom_field) {
+ if (Schema::hasColumn('assets', $custom_field->db_column)) {
+ Schema::table('assets', function ($table) use ($custom_field) {
71
$table->dropColumn($custom_field->db_column);
72
});
73
}
0 commit comments