Skip to content

Commit 863e926

Browse files
committed
Removed FTS3 stuff from help.db
1 parent f9d3eb4 commit 863e926

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

generate_documentation.lua

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,28 +100,34 @@ end -- while
100100

101101
fo:write [[
102102
DROP TABLE IF EXISTS commands_lookup;
103+
DROP TABLE IF EXISTS dialogs_lookup;
104+
DROP TABLE IF EXISTS functions_lookup;
105+
DROP TABLE IF EXISTS general_doc_lookup;
106+
DROP TABLE IF EXISTS errors_lookup;
107+
DROP TABLE IF EXISTS lua_functions_lookup;
108+
109+
/*
110+
111+
-- do this at the client end to save download space
112+
103113
CREATE VIRTUAL TABLE commands_lookup USING FTS4(command_name, short_description, description);
104114
INSERT INTO commands_lookup (command_name, short_description, description) SELECT command_name, short_description, description FROM commands;
105115
106-
DROP TABLE IF EXISTS dialogs_lookup;
107116
CREATE VIRTUAL TABLE dialogs_lookup USING FTS4(dialog_name, title, description);
108117
INSERT INTO dialogs_lookup (dialog_name, title, description) SELECT dialog_name, title, description FROM dialogs;
109118
110-
DROP TABLE IF EXISTS functions_lookup;
111119
CREATE VIRTUAL TABLE functions_lookup USING FTS4(name, summary, description, lua_example, lua_notes);
112120
INSERT INTO functions_lookup (name, summary, description, lua_example, lua_notes) SELECT name, summary, description, lua_example, lua_notes FROM functions;
113121
114-
DROP TABLE IF EXISTS general_doc_lookup;
115122
CREATE VIRTUAL TABLE general_doc_lookup USING FTS4(doc_name, title, description);
116123
INSERT INTO general_doc_lookup (doc_name, title, description) SELECT doc_name, title, description FROM general_doc;
117124
118-
DROP TABLE IF EXISTS errors_lookup;
119125
CREATE VIRTUAL TABLE errors_lookup USING FTS4(error_name, error_code, meaning);
120126
INSERT INTO errors_lookup (error_name, error_code, meaning) SELECT error_name, error_code, meaning FROM errors;
121127
122-
DROP TABLE IF EXISTS lua_functions_lookup;
123128
CREATE VIRTUAL TABLE lua_functions_lookup USING FTS4(name, summary, description);
124129
INSERT INTO lua_functions_lookup (name, summary, description) SELECT name, summary, description FROM lua_functions;
130+
*/
125131
126132
DROP TABLE IF EXISTS `tblUnixControl`;
127133
]]

localize.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ del help.db
88
sqlite3 help.db < documentation_fixed.sql
99
echo Vacuuming the database ...
1010
sqlite3 help.db vacuum
11-
echo Anlyzing the database ...
11+
echo Analyzing the database ...
1212
sqlite3 help.db analyze
1313

1414
echo Building list of files to process ...

0 commit comments

Comments
 (0)