Revive广告无法升级

时间:2019-10-21 11:34:50

标签: php mysql linux

我将Revive广告服务器从4.1升级到5.0时遇到问题。当我上传代码并打开升级页面时,我看到错误。 enter image description here

在日志中,我找到了以下记录:

    Attempting to detect an existing Openads (aka. phpAdsNew) installation...
PAN not detected
Attempting to detect an existing Openads (aka. Max Media Manager 0.1) installation...
MMM v0.1 not detected
Attempting to detect an existing Openads (aka. Max Media Manager 0.3) installation...
MMM v0.3 not detected
Attempting to detect an existing Revive Adserver installation...
schema file found: /var/www/html/etc/changes/schema_tables_core_621.xml
schema definition from cache TRUE
successfully parsed the schema
schema name: openads
schema version: 621
schema status: final
running integrity check
comparing database revive with schema /var/www/html/etc/changes/schema_tables_core_621.xml
column definition does not match: application_variable.name
table is not part of schema: banner_vast_element
table is not part of schema: data_bkt_a
table is not part of schema: data_bkt_a_var
table is not part of schema: data_bkt_c
table is not part of schema: data_bkt_m
table is not part of schema: data_bkt_r
table is not part of schema: data_bkt_vast_e
table is not part of schema: database_action
table is not part of schema: stats_vast
table is not part of schema: upgrade_action
to version: 621
timing: constructive
target database: revive
table prefix: rv_
successfully initialised DB Upgrade
verifying/creating constructive tasklist
checking field: rv_application_variable name
found field name
#! database integrity check detected problems with the database
#! 1 fields to change

不知道该怎么做,我需要升级我的Revive广告服务器。请帮我。

ps:高山,nginx,php 7.1,mysql 5.6

1 个答案:

答案 0 :(得分:0)

我找到了解决该问题的方法。您需要更新数据库中的表。

ALTER TABLE `revive`.`rv_application_variable` 
CHANGE COLUMN `name` `name` VARCHAR(255) NOT NULL DEFAULT '' ;