Merge pull request #16632 from uberbrady/fix_paveit_command
Paveit had old Doctrine code to list tables; use the new method
This commit is contained in:
commit
ba621cb1f2
1 changed files with 3 additions and 3 deletions
|
@ -51,8 +51,7 @@ class PaveIt extends Command
|
||||||
}
|
}
|
||||||
|
|
||||||
// List all the tables in the database so we don't have to worry about missing some as the app grows
|
// List all the tables in the database so we don't have to worry about missing some as the app grows
|
||||||
$tables = DB::connection()->getDoctrineSchemaManager()->listTableNames();
|
$tables = Schema::getTables();
|
||||||
|
|
||||||
$except_tables = [
|
$except_tables = [
|
||||||
'oauth_access_tokens',
|
'oauth_access_tokens',
|
||||||
'oauth_clients',
|
'oauth_clients',
|
||||||
|
@ -74,7 +73,8 @@ class PaveIt extends Command
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($tables as $table) {
|
foreach ($tables as $table_obj) {
|
||||||
|
$table = $table_obj['name'];
|
||||||
if (in_array($table, $except_tables)) {
|
if (in_array($table, $except_tables)) {
|
||||||
$this->info($table. ' is SKIPPED.');
|
$this->info($table. ' is SKIPPED.');
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Reference in a new issue