jadb/migrations/0007_KANJIDIC_Character_loo...

15 lines
499 B
MySQL
Raw Normal View History

2024-11-17 12:27:46 +01:00
CREATE TABLE "KANJIDIC_Character__lookup_romaji"(
"kanji" CHAR(1) NOT NULL REFERENCES "KANJIDIC_Character"("literal"),
"romaji" TEXT NOT NULL,
PRIMARY KEY("kanji", "romaji")
) WITHOUT ROWID;
CREATE TABLE "KANJIDIC_Character__lookup_hiragana"(
"kanji" CHAR(1) NOT NULL REFERENCES "KANJIDIC_Character"("literal"),
"hiragana" TEXT NOT NULL,
PRIMARY KEY("kanji", "hiragana")
) WITHOUT ROWID;
-- index kanji search by hiragana
-- index word search by romaji
-- index word search by hiragana