-
Notifications
You must be signed in to change notification settings - Fork 9
z[ARCHIVED] Migrations
maxmwang edited this page Nov 13, 2024
·
1 revision
- Add a field to your models.py, or change it in some way.
- Run
python3 manage.py makemigrations
to generate the migration files. Commit these files. - Local (optional, if you are using a local test database): Run
python manage.py migrate
. - Staging: With migration files in staging, point the DATABASE_URL to our staging database URL, then run the same command as above.
- Production: With migration files in prod, get a shell into the production backend container, then run the same as above.