-
Notifications
You must be signed in to change notification settings - Fork 9
9999. [ARCHIVED] Migrations
maxmwang edited this page Dec 2, 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.