Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

Django 1.8 Migration with Postgres BDR 9.4.1

$
0
0

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?


Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>