自动更新升级数据库,向前兼容

https://github.com/kingmo888/rustdesk-api-server/issues/47
This commit is contained in:
Cp0204 2024-03-10 22:41:18 +08:00 committed by GitHub
parent 0aec8b49ec
commit f0262634fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
run.sh
View File

@ -7,4 +7,6 @@ if [ ! -e "./db/db.sqlite3" ]; then
echo "首次运行,初始化数据库"
fi
python manage.py makemigrations
python manage.py migrate
python manage.py runserver $HOST:21114;