private function addSalesAttributes($setup)
    {
        /** @var \Magento\Sales\Setup\SalesSetup $salesSetup */
        $salesSetup = $this->salesSetupFactory->create(['resourceName' => 'sales_setup', 'setup' => $setup]);

        /** @var \Magento\Quote\Setup\QuoteSetup $quoteSetup */
        $quoteSetup = $this->quoteSetupFactory->create(['resourceName' => 'quote_setup', 'setup' => $setup]);

        $quoteSetup->addAttribute(
            'quote_address',
            'retailer_id',
            ['type' => \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER, 'visible' => false]
        );

        $salesSetup->addAttribute(
            'order_address',
            'retailer_id',
            ['type' => \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER, 'visible' => false]
        );
    }
private function addSalesAttributes($setup)
    {
        /** @var \Magento\Sales\Setup\SalesSetup $salesSetup */
        $salesSetup = $this->salesSetupFactory->create(['resourceName' => 'sales_setup', 'setup' => $setup]);

        /** @var \Magento\Quote\Setup\QuoteSetup $quoteSetup */
        $quoteSetup = $this->quoteSetupFactory->create(['resourceName' => 'quote_setup', 'setup' => $setup]);

        $quoteSetup->addAttribute(
            'quote_address',
            'retailer_id',
            ['type' => \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER, 'visible' => false]
        );

        $salesSetup->addAttribute(
            'order_address',
            'retailer_id',
            ['type' => \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER, 'visible' => false]
        );
    }
private function addSalesAttributes ( $ setup ) { /** @var \Magento\Sales\Setup\SalesSetup $salesSetup */ $ salesSetup = $ this -> salesSetupFactory -> create ( [ 'resourceName' => 'sales_setup' , 'setup' => $ setup ] ) ; /** @var \Magento\Quote\Setup\QuoteSetup $quoteSetup */ $ quoteSetup = $ this -> quoteSetupFactory -> create ( [ 'resourceName' => 'quote_setup' , 'setup' => $ setup ] ) ; $ quoteSetup -> addAttribute ( 'quote_address' , 'retailer_id' , [ 'type' => \ Magento \ Framework \ DB \ Ddl \ Table :: TYPE_INTEGER , 'visible' => false ] ) ; $ salesSetup -> addAttribute ( 'order_address' , 'retailer_id' , [ 'type' => \ Magento \ Framework \ DB \ Ddl \ Table :: TYPE_INTEGER , 'visible' => false ] ) ; }
Add retailer_id attribute to sales_order_address and sales_quote_address

@param ModuleDataSetupInterface $setup Data Setup
Add retailer_id attribute to sales_order_address and sales_quote_address