I am trying to run Django migrations on a Postgres database with BDR.
python manage.py makemigrations
works fine, but running
python manage.py migrate
results in the following error:
ALTER TABLE … ALTER COLUMN TYPE … may only affect UNLOGGED or TEMPORARY tables when BDR is active; auth_permission is a regular table
The offending module is django/django/contrib/auth/migrations/0002_alter_permission_name_max_length.py
.
I am not finding anything on how to UNLOGGED tables using Django, especially, since auth_permissions is a Django table (not created by me). I am also not sure if UNLOGGED tables will replicate.
Does anyone have any advice?