@@ -93,6 +93,12 @@ class MigrateStatus extends BaseCommand
9393 '-g ' => 'Set database group ' ,
9494 ];
9595
96+ protected $ ignoredNamespaces = [
97+ 'CodeIgniter ' ,
98+ 'Config ' ,
99+ 'Tests\Support '
100+ ];
101+
96102 /**
97103 * Displays a list of all migrations and whether they've been run or not.
98104 *
@@ -114,25 +120,25 @@ public function run(array $params = [])
114120 // Loop for all $namespaces
115121 foreach ($ namespaces as $ namespace => $ path )
116122 {
123+ if (in_array ($ namespace , $ this ->ignoredNamespaces ))
124+ {
125+ continue ;
126+ }
117127
118128 $ runner ->setNamespace ($ namespace );
119129 $ migrations = $ runner ->findMigrations ();
120130 $ history = $ runner ->getHistory ();
121131
132+ CLI ::write ($ namespace );
133+
122134 if (empty ($ migrations ))
123135 {
124- CLI ::error (" $ namespace : " . lang ('Migrations.noneFound ' ));
136+ CLI ::error (lang ('Migrations.noneFound ' ));
125137 continue ;
126138 }
127139
128140 ksort ($ migrations );
129141
130- CLI ::newLine (1 );
131-
132- CLI ::write (lang ('Migrations.historyFor ' ) . "$ namespace: " , 'green ' );
133-
134- CLI ::newLine (1 );
135-
136142 $ max = 0 ;
137143 foreach ($ migrations as $ version => $ migration )
138144 {
@@ -142,7 +148,7 @@ public function run(array $params = [])
142148 $ max = max ($ max , strlen ($ file ));
143149 }
144150
145- CLI ::write (str_pad (lang ('Migrations.filename ' ), $ max + 6 ) . lang ('Migrations.on ' ), 'yellow ' );
151+ CLI ::write (' ' . str_pad (lang ('Migrations.filename ' ), $ max + 4 ) . lang ('Migrations.on ' ), 'yellow ' );
146152
147153
148154 foreach ($ migrations as $ version => $ migration )
@@ -157,7 +163,7 @@ public function run(array $params = [])
157163
158164 $ date = date ("Y-m-d H:i:s " , $ row ['time ' ]);
159165 }
160- CLI ::write (str_pad ($ migration ->name , $ max + 6 ) . ($ date ? $ date : '--- ' ));
166+ CLI ::write (str_pad (' ' . $ migration ->name , $ max + 6 ) . ($ date ? $ date : '--- ' ));
161167 }
162168 }
163169 }
0 commit comments