diff --git a/back/pialert.py b/back/pialert.py index f2d18b41..85430f4d 100755 --- a/back/pialert.py +++ b/back/pialert.py @@ -2840,6 +2840,17 @@ def upgradeDB (): AND name='Nmap_Scan'; """).fetchone() == None + # Re-creating Parameters table + file_print("[upgradeDB] Re-creating Parameters table") + sql.execute("DROP TABLE Parameters;") + + sql.execute(""" + CREATE TABLE "Parameters" ( + "par_ID" TEXT PRIMARY KEY, + "par_Value" TEXT + ); + """) + # Initialize Parameters if unavailable initOrSetParam('Back_App_State','Initializing') diff --git a/docker-compose.yml b/docker-compose.yml index ff2cfab4..36febe49 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,9 +7,9 @@ services: network_mode: "host" restart: unless-stopped volumes: - - ${APP_DATA_LOCATION}/pialert/config2:/home/pi/pialert/config + - ${APP_DATA_LOCATION}/pialert/config:/home/pi/pialert/config # - ${APP_DATA_LOCATION}/pialert/db/pialert.db:/home/pi/pialert/db/pialert.db - - ${APP_DATA_LOCATION}/pialert/db2:/home/pi/pialert/db + - ${APP_DATA_LOCATION}/pialert/db:/home/pi/pialert/db # (optional) useful for debugging if you have issues setting up the container - ${LOGS_LOCATION}:/home/pi/pialert/front/log # DELETE START anyone trying to use this file: comment out / delete BELOW lines, they are only for development purposes diff --git a/front/network.php b/front/network.php index ca87e2b3..1548b31c 100755 --- a/front/network.php +++ b/front/network.php @@ -454,10 +454,10 @@