File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
src/Illuminate/Database/Schema Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,20 @@ public function dropIfExists($table)
226
226
}));
227
227
}
228
228
229
+ /**
230
+ * Drop columns from a table schema.
231
+ *
232
+ * @param string $table
233
+ * @param string|array $columns
234
+ * @return void
235
+ */
236
+ public function dropColumns ($ table , $ columns )
237
+ {
238
+ $ this ->table ($ table , function (Blueprint $ blueprint ) use ($ columns ) {
239
+ $ blueprint ->dropColumn ($ columns );
240
+ });
241
+ }
242
+
229
243
/**
230
244
* Drop all tables from the database.
231
245
*
@@ -405,18 +419,4 @@ public function blueprintResolver(Closure $resolver)
405
419
{
406
420
$ this ->resolver = $ resolver ;
407
421
}
408
-
409
- /**
410
- * Drop columns from a table schema.
411
- *
412
- * @param string $table
413
- * @param string|array $columns
414
- * @return void
415
- */
416
- public function dropColumns ($ table , $ columns )
417
- {
418
- $ this ->table ($ table , function (Blueprint $ blueprint ) use ($ columns ) {
419
- $ blueprint ->dropColumn ($ columns );
420
- });
421
- }
422
422
}
You can’t perform that action at this time.
0 commit comments