moduleDataSetup->getConnection()->startSetup(); /** @var CustomerSetup $customerSetup */ $customerSetup = $this->customerSetupFactory->create(['setup' => $this->moduleDataSetup]); $customerSetup->addAttribute( Customer::ENTITY, 'netsuite_cseg_ncg_rep_office', [ 'label' => 'netsuite_cseg_ncg_rep_office', 'input' => 'text', 'type' => 'static', 'source' => '', 'required' => false, 'position' => 333, 'visible' => false, 'system' => false, 'backend' => '' ] ); $this->moduleDataSetup->getConnection()->endSetup(); } public function revert(): void { $this->moduleDataSetup->getConnection()->startSetup(); /** @var CustomerSetup $customerSetup */ $customerSetup = $this->customerSetupFactory->create(['setup' => $this->moduleDataSetup]); $customerSetup->removeAttribute(\Magento\Customer\Model\Customer::ENTITY, 'is_netsuite_sync'); $this->moduleDataSetup->getConnection()->endSetup(); } /** * {@inheritdoc} */ public function getAliases(): array { return []; } /** * {@inheritdoc} */ public static function getDependencies(): array { return [ ]; } }