default variables init

This commit is contained in:
Jokob-sk
2022-12-17 10:02:26 +11:00
parent d137599ac3
commit 488085324f
2 changed files with 50 additions and 29 deletions

View File

@@ -1,7 +0,0 @@
#!/bin/sh
DB_NAME="pialert.db"
echo "Create backup before insert new table"
cp ../db/$DB_NAME ../db/pialert.db.bak
echo "Insert new table 'Online_History' to $DB_NAME"
sqlite3 ../db/$DB_NAME "CREATE TABLE 'Online_History' ('Index' INTEGER, 'Scan_Date' TEXT, 'Online_Devices' INTEGER, 'Down_Devices' INTEGER, 'All_Devices' INTEGER, 'Archived_Devices' INTEGER, PRIMARY KEY('Index' AUTOINCREMENT));"