From 7ad7ac85f29d17b79355cd8b9629c95f4a048034 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Wed, 24 Mar 2021 19:52:38 +0100 Subject: [PATCH] improve interactive SQLite completions rename index to avoid it having the same prefix as the files table --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8728f08..caa5964 100644 --- a/Makefile +++ b/Makefile @@ -99,7 +99,7 @@ db_files:: dyld echo 'CREATE TABLE files (id INTEGER PRIMARY KEY, os TEXT, path TEXT, executable BOOLEAN);' $(call find,,sudo) | sed -E "s/'/''/g;s/([^ ]*) (.*)/INSERT INTO files (os, path) VALUES('\1', '\2');/" find $(HOME)/Library | sed "s|^$(HOME)|~|;s/'/''/g;s/.*/INSERT INTO files (os, path) VALUES('macOS', '&');/" - echo 'CREATE INDEX files_path ON files (path);' + echo 'CREATE INDEX _files_path ON files (path);' db_binaries:: dyld printf '\033[1mcollecting executable information...\033[m\n' >&2