DROP TABLE IF EXISTS tags;
DROP TABLE IF EXISTS bugs;
CREATE TABLE tags (
name VARCHAR(64) PRIMARY KEY
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci
TOKENIZER='TokenDelimit';
CREATE TABLE bugs (
id INT UNSIGNED PRIMARY KEY,
tags VARCHAR(40) GROONGA_TYPE='tags',
FULLTEXT INDEX bugs_tags_index (tags) LEXICON='tags'
) DEFAULT CHARSET=utf8mb4;
SELECT mroonga_command("dump --dump_plugins no");
mroonga_command("dump --dump_plugins no")
table_create bugs TABLE_PAT_KEY UInt32
column_create bugs id COLUMN_SCALAR UInt32

table_create mroonga_operations TABLE_NO_KEY
column_create mroonga_operations record COLUMN_SCALAR UInt32
column_create mroonga_operations table COLUMN_SCALAR ShortText
column_create mroonga_operations type COLUMN_SCALAR ShortText

table_create tags TABLE_PAT_KEY ShortText --default_tokenizer TokenDelimit --normalizer NormalizerMySQLGeneralCI
column_create tags name COLUMN_SCALAR ShortText

column_create bugs tags COLUMN_SCALAR tags

column_create tags bugs_tags_index COLUMN_INDEX|WITH_POSITION bugs tags
DROP TABLE bugs;
DROP TABLE tags;
