hasTable('educai_settings')) { $table = $schema->getTable('educai_settings'); // Change webhook_secret from varchar(255) to text to hold encrypted values // Encrypted values are ~300+ characters if ($table->hasColumn('webhook_secret')) { $column = $table->getColumn('webhook_secret'); // Change to TEXT type which can hold large encrypted values $column->setType(\Doctrine\DBAL\Types\Type::getType(Types::TEXT)); $column->setLength(null); // TEXT doesn't need length } // Change catalogue_api_key from varchar(512) to text for consistency if ($table->hasColumn('catalogue_api_key')) { $column = $table->getColumn('catalogue_api_key'); $column->setType(\Doctrine\DBAL\Types\Type::getType(Types::TEXT)); $column->setLength(null); } return $schema; } return null; } }