Skip to content

Commit 8474a8a

Browse files
author
jghauser
committed
refactor: sqlite, rename pk -> primary
1 parent c73f255 commit 8474a8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/papis/config.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ local default_config = {
3030
enable_keymaps = false,
3131
enable_fs_watcher = true,
3232
data_tbl_schema = { -- only "text" and "luatable" are allowed
33-
id = { "integer", pk = true },
33+
id = { "integer", primary = true },
3434
papis_id = { "text", required = true, unique = true },
3535
ref = { "text", required = true, unique = true },
3636
author = "text",

lua/papis/sqlite-wrapper.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ end
171171
local schemas = {
172172
data = config.data_tbl_schema,
173173
metadata = {
174-
id = { "integer", pk = true },
174+
id = { "integer", primary = true },
175175
path = { "text", required = true, unique = true },
176176
mtime = { "integer", required = true }, -- mtime of the info_yaml
177177
entry = {

0 commit comments

Comments
 (0)