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:
snipe 2025-04-03 15:39:38 +01:00 committed by GitHub
commit ba621cb1f2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
$tables = DB::connection()->getDoctrineSchemaManager()->listTableNames();
$tables = Schema::getTables();
$except_tables = [
'oauth_access_tokens',
'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)) {
$this->info($table. ' is SKIPPED.');
} else {