jadb/migrations/0006_JMdict_KanjiElement__K...

7 lines
345 B
SQL

CREATE TABLE "JMdict_KanjiElement__KANJIDIC_Character__XREF"(
"entryId" INTEGER NOT NULL,
"reading" TEXT NOT NULL,
"kanji" CHAR(1) NOT NULL REFERENCES "KANJIDIC_Character"("literal"),
PRIMARY KEY ("entryId", "reading", "kanji"),
FOREIGN KEY ("entryId", "reading") REFERENCES "JMdict_KanjiElement"("entryId", "reading")
) WITHOUT ROWID;