Browse Source

Update UpdateController.class.php

star7th 7 years ago
parent
commit
ac7937b11e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/Application/Home/Controller/UpdateController.class.php

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

@@ -114,7 +114,7 @@ class UpdateController extends BaseController {
 
         //item表增加is_archived字段
         if (!$this->_is_column_exist("Item","is_archived")) {
-                $sql = "ALTER TABLE ".C('DB_PREFIX')."item ADD is_archived INT( 1 ) NOT NULL DEFAULT '1'  ;";
+                $sql = "ALTER TABLE ".C('DB_PREFIX')."item ADD is_archived INT( 0 ) NOT NULL DEFAULT '1'  ;";
                 D("ItemMember")->execute($sql);
         }