pg_restore --verbose --clean --no-acl --no-owner -h localhost -U skillbox -d skillbox latest.dump
python manage.py migrate
python manage.py reset_all_passwords
pg_dump -Fc --no-acl -h localhost -U skillbox skillbox > latest-anonymized.dump
python manage.py migrate_objectives_to_content
pg_dump -Fc --no-acl -h localhost -U skillbox skillbox > latest-migrated-objectives.dump
python manage.py migrate_objective_snapshots
pg_dump -Fc --no-acl -h localhost -U skillbox skillbox > latest-migrated-objectives-and-snapshots.dump


#Use this command to restore the database from the dump:
#pg_restore --verbose --clean --no-acl --no-owner -h localhost -U skillbox -d skillbox latest-migrated-objectives.dump
