From cca6cb56efb7f657edf3505a2bc2becf0f2dd059 Mon Sep 17 00:00:00 2001 From: Shen Li Date: Wed, 13 Jul 2016 11:00:03 +0800 Subject: [PATCH] *: add empty help_topic table (#1438) Make mycli happy. --- bootstrap.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/bootstrap.go b/bootstrap.go index b32179a052..389e6e3958 100644 --- a/bootstrap.go +++ b/bootstrap.go @@ -100,6 +100,19 @@ const ( VARIABLE_NAME VARCHAR(64) Not Null PRIMARY KEY, VARIABLE_VALUE VARCHAR(1024) DEFAULT Null, COMMENT VARCHAR(1024));` + + // CreateHelpTopic is the SQL statement creates help_topic table in system db. + // See: https://dev.mysql.com/doc/refman/5.5/en/system-database.html#system-database-help-tables + CreateHelpTopic = `CREATE TABLE if not exists mysql.help_topic ( + help_topic_id int(10) unsigned NOT NULL, + name char(64) NOT NULL, + help_category_id smallint(5) unsigned NOT NULL, + description text NOT NULL, + example text NOT NULL, + url text NOT NULL, + PRIMARY KEY (help_topic_id), + UNIQUE KEY name (name) + ) ENGINE=InnoDB DEFAULT CHARSET=utf8 STATS_PERSISTENT=0 COMMENT='help topics';` ) // Bootstrap initiates system DB for a store. @@ -182,6 +195,8 @@ func doDDLWorks(s Session) { mustExecute(s, CreateGloablVariablesTable) // Create TiDB table. mustExecute(s, CreateTiDBTable) + // Create help table. + mustExecute(s, CreateHelpTopic) } // Execute DML statements in bootstrap stage.