summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorLaurent Arnoud <laurent@spkdev.net>2021-03-04 21:08:32 +0100
committerLaurent Arnoud <laurent@spkdev.net>2021-03-08 18:36:57 +0100
commit2b859a71810ac6352efea43de259eb3343e38e5f (patch)
tree42cc0baf552c0e72d7f00d5ed47d4d72f12efc46 /scripts
parentf088a991380441254e78dba2bdef4309c8b7815e (diff)
downloadqutebrowser-2b859a71810ac6352efea43de259eb3343e38e5f.tar.gz
qutebrowser-2b859a71810ac6352efea43de259eb3343e38e5f.zip
Force rebuild on history import
Before the v2.0.x release, deleting the table had the same effect, but that's not the case anymore
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/hist_importer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/hist_importer.py b/scripts/hist_importer.py
index 6f2b9fa87..df12bcf2e 100755
--- a/scripts/hist_importer.py
+++ b/scripts/hist_importer.py
@@ -135,7 +135,8 @@ def insert_qb(history, dest):
'INSERT INTO History (url,title,atime,redirect) VALUES (?,?,?,?)',
history
)
- cursor.execute('DROP TABLE CompletionHistory')
+ cursor.execute('UPDATE CompletionMetaInfo SET value = 1 '
+ 'WHERE key = "force_rebuild"')
conn.commit()
conn.close()