Browse Source

Added index.

Steve Thielemann 1 month ago
parent
commit
fa4f040767
1 changed files with 2 additions and 1 deletions
  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,