瀏覽代碼

Added index.

Steve Thielemann 1 月之前
父節點
當前提交
fa4f040767
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/sql/init.sql

+ 2 - 1
src/sql/init.sql

@@ -1,8 +1,9 @@
 CREATE TABLE "Books" (
 	"bid"	INTEGER,
-	"book"	TEXT NOT NULL UNIQUE,
+	"book"	TEXT NOT NULL,
 	PRIMARY KEY("bid" AUTOINCREMENT)
 );
+CREATE UNIQUE INDEX iBook ON Books(book);
 CREATE TABLE "Verses" (
 	"bid"	INTEGER,
 	"chapter"	INTEGER,