Below are all settings for django-pgmigrate
.
Configure the action that should be taken when blocking locks are discovered during migrations. Must be:
pgmigrate.TERMINATE
: To terminate the blocking lockspgmigrate.SHOW
: To show the process IDs of the blocking locksNone
: To take no action- A custom function that takes the managment command instance and he blocking lock queryset. See the Advanced Configuration section for an example.
Default pgmigrate.TERMINATE
Configure the interval at which the blocking action runs using a datetime.timedelta
object.
Default datetime.timedelta(seconds=1)
Use a Python datetime.timedelta
object to configure Postgres's lock_timeout
for migrations.
Default None
True
if Django's migrate
command is patched to use the pgmigrate
command. If False
, one must call python manage.py pgmigrate
to use special migration functionality.
Default True