I have an existing custom module on my D9 website and I need to make some changes inside it. I want to add a field (boolean) into any content type page edit without doing it manually.
So I need my field to be available here
On my CLI, i've run this command
drush generate field, which gave me those files :
modules/custom/mymdule/config/schema/calcul.schema.yml modules/custom/mymdule/css/calcul-ajout-widget.css modules/custom/mymdule/calcul.libraries.yml modules/custom/mymdule/src/Plugin/Field/FieldFormatter/AjoutDefaultFormatter.php modules/custom/mymdule/src/Plugin/Field/FieldType/AjoutItem.php modules/custom/mymdule/src/Plugin/Field/FieldWidget/AjoutWidget.php
After, I ran
drush updb, but it said that the database is already up to date. Yet, I don't see my field here. Moreover, the command didn't asked me what entity type should be linked to this field.
Any thoughts ? What i've done wrong ?