芝麻web文件管理V1.00
编辑当前文件:/home/projzpbv/www/wp-content/plugins/mailpoet/lib/Migrations/Db/Migration_20230221_200520.php
addRawMessagesToLogs(); $this->addContextToLogs(); } private function addRawMessagesToLogs() { $logsTable = $this->getTableName(LogEntity::class); $columnName = 'raw_message'; if ($this->columnExists($logsTable, $columnName)) { return; } $this->connection->executeStatement(" ALTER TABLE {$logsTable} ADD {$columnName} longtext DEFAULT NULL "); } private function addContextToLogs() { $logsTable = $this->getTableName(LogEntity::class); $columnName = 'context'; if ($this->columnExists($logsTable, $columnName)) { return; } $this->connection->executeStatement(" ALTER TABLE {$logsTable} ADD {$columnName} longtext DEFAULT NULL "); } }