# Swagtail ### 1. BACKUP! ``` heroku pg:backups:download --app amalfi-prod --output latest_prod.dump ``` ### 3. Switch branch Load `feature/oth-1331-remove-wagtail` branch ### 2. Make sure your models fits the current database schema ``` python manage.py makemigrations ``` ``` no changes detected ``` ### 3. Clear the migration history ``` find . -path "*/migrations/*.py" -not -name "__init__.py" -delete find . -path "*/migrations/*.pyc" -delete ``` ``` TRUNCATE TABLE django_migrations; ``` Cascade remove blog, faq, landing, website and wagtail tables ### 4. Create the initial migrations ``` python manage.py makemigrations ``` ### 5. Fake the initial migrations Manually on server: ``` python manage.py migrate --fake ``` ### 6. Remove wagtail Merge wagtail branch