Skip to content

Commit a6d1b0e

Browse files
authored
Merge pull request #63 from Jmainguy/docker
Fix book_info.sql and dump entire database to sql and sqlite3
2 parents 963ff9c + cdfc9e6 commit a6d1b0e

File tree

4 files changed

+960
-17
lines changed

4 files changed

+960
-17
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Summary:
2222

2323
- *bible-mysql.sql* (MySQL) is the main database and most feature-oriented due to contributions from developers. It is suggested you use that for most things, or at least convert the information from it.
2424
- *cross_references-mysql.sql* (MySQL) is the cross-reference table. It has been separated to become an optional feature. This is converted from the project at http://www.openbible.info/labs/cross-references/.
25-
- *bible-sqlite.db* (SQLite) is a basic simplified database for simpler applications (includes cross-references too).
25+
- *bible-sqlite.db* (SQLite) is converted from bible-mysql.sql using mysql2sqlite. (includes cross-references too).
2626
- *cross_references.txt* is the source cross-reference file obtained from http://www.openbible.info/labs/cross-references/
2727

2828

bible-mysql.sql

+949-6
Large diffs are not rendered by default.

bible-sqlite.db

-185 KB
Binary file not shown.

sql/book_info.sql

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
PRAGMA foreign_keys=OFF;
2-
BEGIN TRANSACTION;
3-
CREATE TABLE IF NOT EXISTS "book_info" (
4-
"order" INTEGER NOT NULL UNIQUE,
5-
"title_short" TEXT NOT NULL UNIQUE,
6-
"title_full" TEXT NOT NULL UNIQUE,
7-
"abbreviation" TEXT NOT NULL UNIQUE,
8-
"category" TEXT NOT NULL,
9-
"otnt" TEXT NOT NULL
10-
, "chapters" INTEGER);
1+
CREATE TABLE IF NOT EXISTS `book_info` (
2+
`order` int NOT NULL AUTO_INCREMENT UNIQUE,
3+
`title_short` text NOT NULL UNIQUE,
4+
`title_full` text NOT NULL UNIQUE,
5+
`abbreviation` text NOT NULL UNIQUE,
6+
`category` text NOT NULL,
7+
`otnt` text NOT NULL,
8+
`chapters` int,
9+
PRIMARY KEY (`order`)
10+
);
1111
INSERT INTO book_info VALUES(1,'Genesis','The First Book of Moses Called Genesis','Gen.','Law','OT',50);
1212
INSERT INTO book_info VALUES(2,'Exodus','The Second Book of Moses Called Exodus','Ex.','Law','OT',40);
1313
INSERT INTO book_info VALUES(3,'Leviticus','The Third Book of Moses Called Leviticus','Lev.','Law','OT',27);

0 commit comments

Comments
 (0)