From 760768f42d830da07afd463980400310279dcbdf Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Thu, 3 Apr 2025 15:35:07 +0100 Subject: [PATCH] Paveit had old Doctrine code to list tables; use the new method --- app/Console/Commands/PaveIt.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/PaveIt.php b/app/Console/Commands/PaveIt.php index 09c846ea6..ef69d25a5 100644 --- a/app/Console/Commands/PaveIt.php +++ b/app/Console/Commands/PaveIt.php @@ -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 {