From eced2899f15131b9b6485476b58d1e628bab4f7c Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Tue, 4 Dec 2018 20:23:08 -0800 Subject: [PATCH] oh well --- fontland/fontland/db.rkt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)