Browse Source

fix a bug under mysql 5.6

star7th 9 years ago
parent
commit
acb9a4ae0b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Application/Home/Controller/UpdateController.class.php
  2. 1 1
      install/ajax.php

+ 1 - 1
Application/Home/Controller/UpdateController.class.php

@@ -203,7 +203,7 @@ class UpdateController extends BaseController {
         `uid` int(10) NOT NULL DEFAULT '0',
         `username` varchar(200) NOT NULL DEFAULT '',
         `template_title` varchar(200) NOT NULL DEFAULT '' ,
-        `template_content` text NOT NULL DEFAULT '',
+        `template_content` text NOT NULL ,
         `addtime` int(11) NOT NULL DEFAULT '0',
         PRIMARY KEY (`id`),
         KEY `uid` (`uid`)

+ 1 - 1
install/ajax.php

@@ -287,7 +287,7 @@ function import_mysql($con){
     `uid` int(10) NOT NULL DEFAULT '0',
     `username` varchar(200) NOT NULL DEFAULT '',
     `template_title` varchar(200) NOT NULL DEFAULT '' ,
-    `template_content` text NOT NULL DEFAULT '',
+    `template_content` text NOT NULL ,
     `addtime` int(11) NOT NULL DEFAULT '0',
     PRIMARY KEY (`id`),
     KEY `uid` (`uid`)