forked from HPR/hpr-tools
2024-10-29_14-25-10_CET
This commit is contained in:
14
feed_watcher/db_regen
Executable file
14
feed_watcher/db_regen
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Make a new empty database using the schema file
|
||||
#
|
||||
BASEDIR="$HOME/HPR/feed_watcher"
|
||||
DB="$BASEDIR/feedWatcher.db"
|
||||
SCHEMA="$BASEDIR/feedWatcher_schema.sql"
|
||||
|
||||
if [[ -e $DB ]]; then
|
||||
rm -f "$DB"
|
||||
fi
|
||||
|
||||
sqlite3 "$DB" < "$SCHEMA"
|
Reference in New Issue
Block a user