Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL
All skills

django-migrations

Write or review a safe PostHog Django migration, including non-blocking index changes, backfills, and model or column retirement.

When to use it

You have a schema change drafted or a model to retire and need to know whether it is safe to deploy without locking hot tables or breaking running pods.

For example

You say

Use django-migrations to add a nullable status column to the Team model and a new index on it.

You get
  • Team extension model migration
  • SafeAddIndexConcurrently migration
  • Hot-table acknowledgment note

How it works

  • Hot tables like posthog_team need an extension model or a CI acknowledgment before any ALTER.
  • Retiring a column means hiding it from the ORM first and dropping it in a later migration.
  • Data migrations require row counts in US and EU before choosing a backfill design.