This prototype has been reset to a clean migration state.
- ✅ Deleted all existing migration files (except
__init__.py) - ✅ Deleted old database file (
db.sqlite3) - ✅ Created reset script for fresh migrations
- ✅ Created migrations folders for all apps (authentication, search)
# Start containers
docker-compose -f docker-compose.dev.yml up --build
# In another terminal, exec into backend container
docker exec -it wagtail-backend sh
# Run migrations
python manage.py makemigrations
python manage.py migrate
# Create superuser
python manage.py createsuperusercd pilot-backend
source venv/bin/activate # if using venv
./reset_migrations.shcd pilot-backend
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuserhome- Homepage modelssearch- Search functionalitynavigation- Navigation menuscontent- Content pagesfooter- Footer modelsteam- Team member modelsfaq- FAQ modelstaxonomy- Taxonomy/categorizationauthentication- User authentication (new)
- 🎯 Single clean migration per app instead of multiple files
- 🚀 Faster database setup
- 🧹 Easier to understand migration history
- 📦 Smaller repository size
- ✨ Clean slate for prototype development
This reset is appropriate for prototypes/development. Do not do this on production databases as it will lose all data and migration history.