1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/mygpo_ynh.git synced 2024-09-03 19:55:52 +02:00

use makemigrations --merge on migrate

This commit is contained in:
Jules Bertholet 2021-10-18 00:33:09 -04:00
parent c2c70ec509
commit cefa3e34e4

View file

@ -59,7 +59,7 @@ function upgrade_db {
}
function perform_db_migrations {
sudo -u $app $final_path/venv/bin/envdir $env_path $final_path/venv/bin/python $final_path/manage.py makemigrations
sudo -u $app $final_path/venv/bin/envdir $env_path $final_path/venv/bin/python $final_path/manage.py makemigrations --merge
sudo -u $app $final_path/venv/bin/envdir $env_path $final_path/venv/bin/python $final_path/manage.py migrate
}