Skip to content

Commit

Permalink
Cleaup
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Jan 28, 2025
1 parent 89d1cc2 commit 0d19235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/console/controllers/UpgradeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,9 @@ private function _customField(string $oldAttribute, string $label, ?string $pref

$field = new PlainText();
$field->groupId = ArrayHelper::firstValue(Craft::$app->getFields()->getAllGroups())->id;
if($oldAttribute == 'notes'){
if ($oldAttribute == 'notes') {
$field->columnType = Schema::TYPE_TEXT;
}else{
} else {
$field->columnType = Schema::TYPE_STRING;
}
$field->handle = $this->prompt('Field handle:', [
Expand Down

0 comments on commit 0d19235

Please sign in to comment.