Skip to content

Instantly share code, notes, and snippets.

View mehmeta's full-sized avatar

Mehmet Alkanlar mehmeta

  • Lyft
  • San Francisco, CA
View GitHub Profile
0x72DF944D03b47Ad706C98B54fEAD828179412aae
@mehmeta
mehmeta / migrations.md
Created October 9, 2017 18:15 — forked from majackson/migrations.md
Django migrations without downtime

Django Migrations without Downtime

The following instructions describe a set of processes allowing you to run Django database migrations against a production database without having to bring the web service down.

Note that in the below instructions, migrations are all run manually at explicit points, and are not an automatic part of the deployment process.

Adding Fields or Tables

Adding a (nullable) field or a new table

  1. Make the model or column addition in your code.