{"repo":"tbicr/django-pg-zero-downtime-migrations","free":true,"listed":false,"github":"https://github.com/tbicr/django-pg-zero-downtime-migrations","clone":"git clone https://github.com/tbicr/django-pg-zero-downtime-migrations.git","description":"Django postgresql backend that apply migrations with respect to database locks","language":"Python","stars":573,"topics":["python","python3","django","django-postgresql","django-backend","django-migrations"],"license":"MIT","category":"databases-storage","readme_excerpt":"django-pg-zero-downtime-migrations Django postgresql backend that apply migrations with respect to database locks. Installation pip install django-pg-zero-downtime-migrations Usage To enable zero downtime migrations for postgres just setup django backend provided by this package and add most safe settings: DATABASES = { 'default': { 'ENGINE': 'django zero downtime migrations.backends.postgres', #'ENGINE': 'django zero downtime migrations.backends.postgis', ... } } ZERO DOWNTIME MIGRATIONS LOCK TIMEOUT = '2s' ZERO DOWNTIME MIGRATIONS STATEMENT TIMEOUT = '2s' ZERO DOWNTIME MIGRATIONS FLEXIBLE STATEMENT TIMEOUT = True ZERO DOWNTIME MIGRATIONS RAISE FOR UNSAFE = True NOTE: this backend brings zero downtime improvements only for migrations (schema and RunSQL operations, but not for RunPython operation), for other purpose it works the same as standard django backend. NOTE: this package is in beta, please check your migrations SQL before applying on production and submit issue for any question. Differences with standard django backend This backend provides same result state (except of ZERO DOWNTIME MIGRATIONS KEEP DEFAULT=True usage for django NOTE: idempotent mode checks rely only on name and index and constraint valid state, so it can ignore name collisions and recommended do not use it for CI checks. ZERO DOWNTIME MIGRATIONS EXPLICIT CONSTRAINTS DROP Define way to drop foreign key, unique constraints and indexes before drop table or column, default True : ZERO DOWNTIME MIGRATIONS","default_branch":null,"files":null,"tree":[],"storefront":"/r/tbicr","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tbicr/django-pg-zero-downtime-migrations/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}