diff --git a/python-postorius.changes b/python-postorius.changes index b0dfe32..5a76c40 100644 --- a/python-postorius.changes +++ b/python-postorius.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 6 14:30:03 UTC 2022 - Andreas Schneider + +- Add missing makemigritions on update + ------------------------------------------------------------------- Wed Jul 6 13:19:16 UTC 2022 - Ben Greiner diff --git a/python-postorius.spec b/python-postorius.spec index 2968b61..0a6d784 100644 --- a/python-postorius.spec +++ b/python-postorius.spec @@ -217,6 +217,7 @@ popd if ! grep -q "^SECRET_KEY.*" %{postorius_etcdir}/settings_local.py; then echo "SECRET_KEY='$(openssl rand -base64 48)'" >> %{postorius_etcdir}/settings_local.py fi +%{_sbindir}/postorius-manage makemigrations --pythonpath /srv/www/webapps/mailman/postorius/ --settings settings %{_sbindir}/postorius-manage migrate --pythonpath /srv/www/webapps/mailman/postorius/ --settings settings %files -n %{postorius_pkgname}