Skip to content

Commit

Permalink
fix(sqlite-wrapper): create tbl after dropping if schema change
Browse files Browse the repository at this point in the history
  • Loading branch information
jghauser committed Jul 29, 2024
1 parent c54f4b7 commit 7aa89ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/papis/sqlite-wrapper.lua
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ function M:init()
log.debug(string.format("The table schema for '%s' has changed", tbl_name))
if self:exists(tbl_name) then
self:drop(tbl_name)
self[tbl_name] = self:create_tbl_with_methods(tbl_name)
end
self[tbl_name] = self:create_tbl_with_methods(tbl_name)
if tbl_name == "config" then
Expand Down

0 comments on commit 7aa89ce

Please sign in to comment.