@@ -37,15 +37,8 @@ public function handle()
3737 return 1 ;
3838 }
3939
40- $ this ->components ->task (
41- 'Migrating your database schema ' ,
42- fn () => $ this ->call ('migrate ' , ['--force ' => true ])
43- );
44-
4540 $ database = $ this ->getDatabaseInfo (explode (", " , $ this ->argument ("table " )));
4641
47- $ this ->components ->info ('Preparing database. ' );
48-
4942 $ this ->components ->task ('Dropping the tables ' , $ this ->dropTables (
5043 $ this ->collectMigrations ($ database ),
5144 $ this ->collectTables ($ database )
@@ -65,7 +58,7 @@ public function handle()
6558 protected function getDatabaseInfo (array $ tablesNeededToDrop )
6659 {
6760 // At first, we will filter the given array of tables to go through each one
68- // verifying that the passed table has a migration and then , we will check if
61+ // verifying that it has a migration. Then , we will check if
6962 // the `tables` key has been set by the `guessDatabaseInfo` method or not
7063 // because if it is set, it means the table is there
7164 // or we will ask the developer to choose the correct table instead.
@@ -84,8 +77,7 @@ protected function getDatabaseInfo(array $tablesNeededToDrop)
8477 )
8578 );
8679
87- // In case the table is not there, we will recall the method again
88- // to update the invalid database info.
80+ // We will re-invoke the method to update the invalid database info.
8981 $ info = $ this ->guessDatabaseInfo ($ value );
9082
9183 $ database ["migrations " ][$ index ] = array_values ($ info ["migrations " ]);
0 commit comments