Installing Magento 2.3, I get error Invalid Index, the error points to the attached code in the setup file and error states the index is
'tinyint(1) NOT NULL default 0'
. Dropped back to 2.2.7, it works fine.
if(!$installer->getConnection()->tableColumnExists($installer->getTable('catalog_product_option'), 'customoptions_status')) {
$installer->getConnection()->addColumn( $installer->getTable('catalog_product_option'),
'customoptions_status',
'tinyint(1) NOT NULL default 0'
);
}