hasTable("users") && !$builder->hasColumn("users","pic") ) { $builder->table('users', function (Table $table) { $table->string('pic')->setNotnull(false)->setLength(512); }); } } /** * @param Schema $schema */ public function down(Schema $schema):void { $builder = new Builder($schema); if($schema->hasTable("users") && $builder->hasColumn("users","pic") ) { $builder->table('users', function (Table $table) { $table->dropColumn('pic'); }); } } }