From a6410c81a5bf04bbe2a3d0c3c1370af5c8c84a9b Mon Sep 17 00:00:00 2001 From: ScuffedNewt Date: Wed, 28 Aug 2024 21:15:00 +0100 Subject: [PATCH] fix(command): check for correct column over table --- app/Console/Commands/ConvertCharacterSubtype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/ConvertCharacterSubtype.php b/app/Console/Commands/ConvertCharacterSubtype.php index c944bf16a..f3a2eb643 100644 --- a/app/Console/Commands/ConvertCharacterSubtype.php +++ b/app/Console/Commands/ConvertCharacterSubtype.php @@ -37,7 +37,7 @@ public function __construct() { * @return mixed */ public function handle() { - if (!Schema::hasTable('character_image_subtypes')) { + if (Schema::hasColumn('character_images', 'subtype_id')) { $check = $this->confirm('Do you have the second subtype extension installed?', true); if ($check) { $this->info('This command will need minor modifications to run correctly with this extension. Please see the comments in the file.');