Skip to content

Commit

Permalink
fix(command): check for correct column over table
Browse files Browse the repository at this point in the history
  • Loading branch information
ScuffedNewt committed Aug 28, 2024
1 parent eae9336 commit a6410c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/ConvertCharacterSubtype.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down

0 comments on commit a6410c8

Please sign in to comment.