migrations: add constraint for kanjidic skip misclassifications
This commit is contained in:
@@ -113,6 +113,7 @@ CREATE TABLE "KANJIDIC_QueryCode" (
|
||||
"code" VARCHAR(7) NOT NULL,
|
||||
"type" VARCHAR(11) NOT NULL CHECK ("type" IN ('skip', 'sh_desc', 'four_corner', 'deroo', 'misclass')),
|
||||
"SKIPMisclassification" VARCHAR(15),
|
||||
CHECK ("SKIPMisclassification" IS NULL OR "type" = 'skip'),
|
||||
PRIMARY KEY ("kanji", "type", "code")
|
||||
) WITHOUT ROWID;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user