add utility scripts for db adjustments

This commit is contained in:
nobody 2024-08-06 22:04:05 +02:00 committed by murmeldin
parent 66329819a9
commit e3fe992cd2
2 changed files with 4 additions and 0 deletions

2
util/clear_nonpwd.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
find . -iname '*.sqlite' -exec sqlite3 '{}' "DELETE FROM kv_store WHERE key NOT LIKE '%-password' AND key NOT LIKE '%-secret' AND key != 'email-to';" ';'

2
util/clear_to.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/sh
find . -iname '*.sqlite' -exec sqlite3 '{}' "DELETE FROM kv_store WHERE key = 'email-to';" ';'