Files
NetAlertX/install/pialert_patch_DB.sh
leiweibau 01a267ff05 Completing the graph extension
Known issues:
- some small translations are not yet completed in gaph extension
- some small translations are not yet completed in entire frontend

Modification within the fork:
- enforce only one scancycle (crontab and frontend)
- if not already done, then sqlite3 must be installed
- DB must be patched via install/pialert_patch_DB.sh, otherwise the scan will run into an error
2022-07-16 15:07:18 +02:00

6 lines
383 B
Bash

#!/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));"