Initial commit - existing project files
This commit is contained in:
commit
c49798a9ea
82 changed files with 4304 additions and 0 deletions
16
lib/auto-upgrade-db.sh
Normal file
16
lib/auto-upgrade-db.sh
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
echo -e "Checking if database needs an upgrade..."
|
||||
|
||||
if python3 $(pwd)/lib/verify-db-app-version.py; then
|
||||
|
||||
echo -e "No database upgrade needed."
|
||||
|
||||
else
|
||||
|
||||
echo -e "Starting automatic database upgrade..."
|
||||
source "$(pwd)/lib/db-migrations.sh"
|
||||
python3 $(pwd)/lib/upgrade-db.py
|
||||
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue