Merge pull request #48 from Cp0204/master

自动更新升级数据库,向前兼容
This commit is contained in:
cococo 2024-03-10 23:34:55 +08:00 committed by GitHub
commit fb1b0f7ce8
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;