dedecms在后台自动升级出现栏目不能修改,我遇到了这样的问题,看了很多教程和方法都是不对的,或者语句不完整,下面我我发个完整的给大家参考:
在“系统->SQL命令行工具” ,选择“多行命令”,然后将以下9条SQL代码全部复制进去,并运行。- ALTER TABLE `#@__admintype` CHANGE `rank` `rank` FLOAT( 6 ) DEFAULT '1';
- UPDATE `#@__admintype` set `rank`=(5 + (`rank`/10)) where `rank` > 10;
- ALTER TABLE `#@__admin` CHANGE `usertype` `usertype` FLOAT( 6 ) UNSIGNED DEFAULT '0';
- UPDATE `#@__admin` set `usertype`=(5 + (`usertype`/10)) where `usertype` > 10;
- INSERT INTO `#@__sysconfig` (`aid`, `varname`, `info`, `groupid`, `type`, `value`) VALUES (746, 'cfg_album_mark', '图集是否使用水印(小图也会受影响)', 3, 'bool', 'N');
- ALTER TABLE `#@__arctype` ADD `seotitle` VARCHAR( 80 ) NOT NULL DEFAULT '' AFTER `keywords` ;
- UPDATE `#@__arctype` set `seotitle` = `typename`;
- ALTER TABLE `#@__arctype` CHANGE `keywords` `keywords` VARCHAR( 60 ) NOT NULL DEFAULT '';
- ALTER TABLE `#@__tagindex` ADD `typeid` SMALLINT( 5 ) UNSIGNED DEFAULT '0' NOT NULL AFTER `tag` ;
复制代码 |