I treid to create customer attribute programatically and now i want to update that the attribute with different label and type . I want to know in which table it will stored . I want to remove that attribute also.
public function install(ModuleDataSetupInterface $setup,ModuleContextInterface $context)
{
$eavSetup = $this->eavSetupFactory->create(['setup' => $setup]);
$eavSetup->addAttribute(
\Magento\Customer\Model\Customer::ENTITY,
'phone_number',
[
'type' => 'varchar',
'label' => 'Mobile',
'input' => 'integer',
'required' => true,
'visible' => true,
'user_defined' => true,
'position' => 999,
'system' => 0,
]
);
$eavSetup->updateAttribute('customer', 'phone_number', 'type', 'varchar');
$attribute = $this->eavConfig->getAttribute(Customer::ENTITY, 'phone_number');
$attribute->setData(
'used_in_forms',
['adminhtml_customer', 'customer_account_create']
);
$attribute->save();
}