Files
NetAlertX/install/pialert_patch_DB.sh
leiweibau 35ac3a9b23 Database extension
- patch script extended
- a new table was added to the database
2022-07-18 18:55:47 +02:00

6 lines
383 B
Bash
Executable File

#!/bin/sh
echo "Create backup before insert new table"
cp ../db/pialert.db ../db/pialert.db.bak
echo "Insert new table 'Online_History' to pialert.db"
sqlite3 ../db/pialert.db "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));"