diff --git a/fontland/fontland/db.rkt b/fontland/fontland/db.rkt index d93491c0..ef6ac6c2 100644 --- a/fontland/fontland/db.rkt +++ b/fontland/fontland/db.rkt @@ -27,7 +27,9 @@ [_ #false])) (define (init-db) - (query-exec-logging "create table if not exists layouts (crc INTEGER, layout TEXT, PRIMARY KEY (crc))")) + (query-exec-logging "create table if not exists layouts (crc INTEGER UNIQUE, layout TEXT)") + (query-exec-logging "create index if not exists layout_crcs ON layouts (crc); +")) (module+ main (init-db)