try create a database
This commit is contained in:
1 parent
0908e51791
commit
792fa60030
19 files changed
+112
-22
No files matched your search
Executable
+15
@@ -0,0 +1,15 @@
|
||||
CREATE TABLE "wanikani.subjects" (
|
||||
"id" INT PRIMARY KEY NOT NULL,
|
||||
"updatedAt" TIMESTAMPTZ NOT NULL,
|
||||
"object" TEXT NOT NULL,
|
||||
"url" TEXT NOT NULL,
|
||||
"data" JSONB NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX "idx_wanikani.subjects_object" ON "wanikani.subjects" ("object");
|
||||
CREATE INDEX "idx_wanikani.subjects_data" ON "wanikani.subjects"
|
||||
USING pgroonga("data")
|
||||
WITH (
|
||||
tokenizer='TokenMecab',
|
||||
normalizer='NormalizerNFKC100("unify_kana", true)'
|
||||
);
|
||||
Reference in new issue
Block a user