Recreate database migrations as part of Bookwyrm package build

This commit is contained in:
Reinout Meliesie 2025-03-11 15:46:47 +01:00
parent b56b868cdf
commit 1c16839be1
Signed by: zedfrigg
GPG key ID: 3AFCC06481308BC6

View file

@ -118,6 +118,11 @@ mkDerivation {
export EMAIL_HOST_PASSWORD=""
export SECRET_KEY=""
rm -r bookwyrm/migrations/*
touch bookwyrm/migrations/__init__.py
${python311}/bin/python manage.py makemigrations
${python311}/bin/python manage.py compile_themes
${python311}/bin/python manage.py collectstatic --no-input