add Bundle field to a custom entity I am trying to add a new bundle field into my custom entity, I added the following code into the MyCustomEntity.php file, I uninstalled my module, so, I installed it again, the field is showing up on the view, but in my data base the field is not added.
Could you please support me?
$fields['new_name'] = BaseFieldDefinition::create('text_long')
  -&gt;setLabel(t('New Name'))
  -&gt;setDisplayOptions('form', [
    'type' =&gt; 'text_textarea',
  ])
  -&gt;setRevisionable(TRUE)
  -&gt;setTargetBundle($bundle);

Thank you, I will really appreciate your support.
For the Entity base field update, You'll need to also add an update hook to apply it
For example:
Installing a new field storage definition
use Drupal\Core\Field\BaseFieldDefinition;

/**
 * Implements hook_update_N
 */
function example_update_8701() {
  $bundle = 'article';
  $field_storage_definition = BaseFieldDefinition::create('text_long')
  -&gt;setLabel(t('New Name'))
  -&gt;setDisplayOptions('form', [
    'type' =&gt; 'text_textarea',
  ])-&gt;setRevisionable(TRUE)
  -&gt;setTargetBundle($bundle);

  \Drupal::entityDefinitionUpdateManager()
    -&gt;installFieldStorageDefinition('new_name', 'node', 'EXAMPLE_MODULE', $field_storage_definition);
}

Documentation: https://www.drupal.org/node/3034742