From 6fe166a8f5cc8ff253cd83307a26517c24e9719e Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 17 Nov 2015 10:53:58 +0800 Subject: [PATCH] * fix bug for sql. --- db/update7.3.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/update7.3.sql b/db/update7.3.sql index 58b91e306b..ddb14afd7a 100644 --- a/db/update7.3.sql +++ b/db/update7.3.sql @@ -25,7 +25,7 @@ CREATE TABLE IF NOT EXISTS `zt_storystage` ( `stage` varchar(50) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8; ALTER TABLE `zt_story` ADD INDEX `product` (`product`, `module`, `type`, `pri`), DROP INDEX `product`; -ALTER TABLE `zt_story` ADD `plan` text COLLATE 'utf8_general_ci' NOT NULL AFTER `module`; +ALTER TABLE `zt_story` CHANGE `plan` `plan` text COLLATE 'utf8_general_ci' NOT NULL AFTER `module`; UPDATE `zt_story` SET `plan`='' WHERE `plan`='0'; ALTER TABLE `zt_release` DROP INDEX `name`;