Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
S
shuidi-product-change
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • 互联网应用开发
  • shuidi-product-change
  • Issues
  • #294

Closed
Open
Created Jun 25, 2019 by 王常春@wangchangchunDeveloper

wiki一般内容增加前端控制显示字段

数据库

wiki

表名

SQL

-- 增加控制前端是否显示字段,status为存储审核状态
 ALTER TABLE tb_company_wiki_general_content ADD `is_show` TINYINT(4) unsigned NOT NULL DEFAULT 1 COMMENT '是否前端显示,1为不显示,2为显示' AFTER `mark`;
 
 -- 增加前端搜索索引
  ALTER TABLE tb_company_wiki_general_content
 ADD KEY `idx_digest_type_is_show` (`company_name_digest`,`content_type`,`is_show`);

# 将审核通过内容设为可见
UPDATE tb_company_wiki_general_content SET is_show = 2 where  content != '';
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking