consolidate sql scripts into one

This commit is contained in:
ksyasuda 2022-02-19 01:33:02 -08:00
parent a56fe29a29
commit 6137deb26b

View File

@ -43,13 +43,9 @@ run_setup() {
log "Directory created" log "Directory created"
fi fi
if [[ ! -f "$DIR/$DB" ]]; then log "CREATING HISTORY DATABASE IF NOT EXISTS"
log "CREATING HISTORY DATABASE" sqlite3 "$DIR/$DB" < sql/history.sql
sqlite3 "$DIR/$DB" < sql/search_history_tbl.sql
sqlite3 "$DIR/$DB" < sql/watch_history_tbl.sql
sqlite3 "$DIR/$DB" < sql/file_history.sql
log "FINISHED CREATING DB" log "FINISHED CREATING DB"
fi
# log "themes directory does not exist in filesystem... Creating and moving themes" # log "themes directory does not exist in filesystem... Creating and moving themes"
mkdir -p "$DIR/themes" mkdir -p "$DIR/themes"