I searched all over and don't see anyone with the same issue.
Below are steps I tried to solve this with no success
- I deleted the module from
setup_module
table. - I don't see any errors in var/log/debug I don't see the log below, I do see the log from registration.php I put in
- It works for the other plugin I have under BB/StoreSchedule/Setup
I tried running the commands below:
- php bin/magento setup:upgrade
- php bin/magento setup:di:compile
- php bin/magento cache:clean
- I looked over my code for typos 50+ times
- I did not see the log from the InstallSchema in the log file.
Please any suggestions!
I am running Magento ver. 2.3.2
I am running on a mac using https://github.com/markshust/docker-magento as my dev environment
Running in the following mode
app@c98698704947:~/html$ php bin/magento deploy:mode:show
Current application mode: default. (Note: Environment variables may override this value.)
InstallSchema.php
<?php
namespace BB\CustomerGroup\Setup;
use Magento\Framework\Setup\InstallSchemaInterface;
use Magento\Framework\Setup\ModuleContextInterface;
use Magento\Framework\Setup\SchemaSetupInterface;
/**
* @codeCoverageIgnore
*/
class InstallSchema implements InstallSchemaInterface
{
/**
* {@inheritdoc}
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)
{
$writer = new \Zend\Log\Writer\Stream(BP . '/var/log/debug.log');
$logger = new \Zend\Log\Logger();
$logger->addWriter($writer);
$logger->info('TEST GOT HERE');
$setup->startSetup();
$table = $setup->getTable('customer_group');
$setup->getConnection()->addColumn(
$table,
'zip_codes',
[
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
'length' => 255,
'nullable' => true,
'default' => '',
'comment' => 'Zip codes covered by this customer group'
]
);
$setup->endSetup();
}
}