From 23bd589e456ebd6ddd8dd1adb2a8bdeecf3a146e Mon Sep 17 00:00:00 2001 From: "Benjamin A. Shelton" Date: Thu, 12 Nov 2026 19:28:09 -0700 Subject: [PATCH] Switch to storing ISBNs as text. --- migrations/sqlite/0004_library.sql | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/migrations/sqlite/0004_library.sql b/migrations/sqlite/0004_library.sql index 66b6c89..6f0602a 100644 --- a/migrations/sqlite/0004_library.sql +++ b/migrations/sqlite/0004_library.sql @@ -2,9 +2,7 @@ create table library_books ( id integer primary key autoincrement, - isbn integer default 0 not null, - -- ISBN-10 check digit. If it is the maximum allowable value in the base-11 format (i.e. the ISBN-10 ends with "X") this will be "1". - isbn_check integer default 0 not null, + isbn text default '' not null, title text default '' not null, authors text default '' not null, meta jsonb default '{}' not null