hasTable($tableName)) { $table = $schema->getTable($tableName); // Enable/disable the catalogue integration if (!$table->hasColumn('catalogue_enabled')) { $table->addColumn('catalogue_enabled', Types::BOOLEAN, [ 'notnull' => false, 'default' => 0, ]); } // The base URL for the catalogue API (e.g., https://catalogue.example.com/api) if (!$table->hasColumn('catalogue_api_endpoint')) { $table->addColumn('catalogue_api_endpoint', Types::STRING, [ 'notnull' => false, 'length' => 512, ]); } // Optional API key for authenticated catalogue endpoints. if (!$table->hasColumn('catalogue_api_key')) { $table->addColumn('catalogue_api_key', Types::STRING, [ 'notnull' => false, 'length' => 512, ]); } return $schema; } return null; } }