织梦增加投票提示“增加投票失败,请检查数据是否非法”的解决办

2017-04-13 14:28:17 dedecms

dedecms5.7在发布投票时出现:“增加投票失败,请检查数据是否非法”,而无法成功发起投票的解决办法:登入后台>系统>SQL命令行工具>输入这面整段:

ALTER TABLE `dede_vote` ADD COLUMN `isallow` tinyint(6) NOT NULL default '0' AFTER `ismore`; ALTER TABLE `dede_vote` ADD COLUMN `view` tinyint(6) NOT NULL default '0' AFTER `isallow`; ALTER TABLE `dede_vote` ADD COLUMN `spec` int(20) unsigned NOT NULL default '0' AFTER `view`; ALTER TABLE `dede_vote` ADD COLUMN `isenable` tinyint(6) NOT NULL default '0' AFTER `spec`;