public function appendDecimalDisplayConfiguration(SchemaSetupInterface $setup)
    {
        $connection = $setup->getConnection();
        $table      = $setup->getTable('catalog_eav_attribute');

        // Append a column 'display_pattern' into the db.
        $connection->addColumn(
            $table,
            'display_pattern',
            [
                'type'     => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
                'nullable' => true,
                'default'  => null,
                'length'   => 10,
                'comment'  => 'The pattern to display facet values',
            ]
        );

        // Append a column 'display_precision' into the db.
        $connection->addColumn(
            $table,
            'display_precision',
            [
                'type'     => \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
                'nullable' => true,
                'default'  => 0,
                'comment'  => 'Attribute decimal precision for display',
            ]
        );
    }
public function appendDecimalDisplayConfiguration(SchemaSetupInterface $setup)
    {
        $connection = $setup->getConnection();
        $table      = $setup->getTable('catalog_eav_attribute');

        // Append a column 'display_pattern' into the db.
        $connection->addColumn(
            $table,
            'display_pattern',
            [
                'type'     => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
                'nullable' => true,
                'default'  => null,
                'length'   => 10,
                'comment'  => 'The pattern to display facet values',
            ]
        );

        // Append a column 'display_precision' into the db.
        $connection->addColumn(
            $table,
            'display_precision',
            [
                'type'     => \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
                'nullable' => true,
                'default'  => 0,
                'comment'  => 'Attribute decimal precision for display',
            ]
        );
    }
public function appendDecimalDisplayConfiguration ( SchemaSetupInterface $ setup ) { $ connection = $ setup -> getConnection ( ) ; $ table = $ setup -> getTable ( 'catalog_eav_attribute' ) ; // Append a column 'display_pattern' into the db. $ connection -> addColumn ( $ table , 'display_pattern' , [ 'type' => \ Magento \ Framework \ DB \ Ddl \ Table :: TYPE_TEXT , 'nullable' => true , 'default' => null , 'length' => 10 , 'comment' => 'The pattern to display facet values' , ] ) ; // Append a column 'display_precision' into the db. $ connection -> addColumn ( $ table , 'display_precision' , [ 'type' => \ Magento \ Framework \ DB \ Ddl \ Table :: TYPE_INTEGER , 'nullable' => true , 'default' => 0 , 'comment' => 'Attribute decimal precision for display' , ] ) ; }
Append decimal display related columns to attribute table

@param \Magento\Framework\Setup\SchemaSetupInterface $setup The setup instance
Append decimal display related columns to attribute table