Skip to content

Commit

Permalink
Add scripts_metadata table to SQL DB
Browse files Browse the repository at this point in the history
  • Loading branch information
tvoirand committed Dec 6, 2024
1 parent 6b5182c commit 0374850
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/createdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ CREATE TABLE IF NOT EXISTS detections (
File_Name VARCHAR(100) NOT NULL);
CREATE INDEX "detections_Com_Name" ON "detections" ("Com_Name");
CREATE INDEX "detections_Date_Time" ON "detections" ("Date" DESC, "Time" DESC);
DROP TABLE IF EXISTS scripts_metadata;
CREATE TABLE IF NOT EXISTS scripts_metadata (
script_name TEXT PRIMARY KEY,
last_run DATETIME);
EOF
chown $USER:$USER $HOME/BirdNET-Pi/scripts/birds.db
chmod g+w $HOME/BirdNET-Pi/scripts/birds.db

0 comments on commit 0374850

Please sign in to comment.