generated from hackforla/.github-hackforla-base-repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Technical: Regenerating Migration Scripts
Ethan-Strominger edited this page Mar 11, 2024
·
1 revision
You cannot do this once knowledgebase is deployed someplace other than your machine or Docker. You can do this if you make a change to models.py and then get errors when you run makemigrations and migrate.
- Drop all tables under public schema
- Remove django_kp_app/migrations directory using gui or with command
rm -rf django_kb_app/migrations
- Starting Docker (or running ./start-dev.sh locally) will automatically regenerate migrate scripts.
- localhost:8000/admin
- Log in with admin for username and password