How can I empty the database tables of my Django backend before applying the new migrations?

Hi,
I am having the following build error when the migrations are performed.

https://release-output.heroku.com/streams/69/6989586d-48f5-4f81-8645-dbc47fcc7084/logs/9f/9f83d696-e2a0-4379-9288-b7033b49080f.log?AWSAccessKeyId=AKIAIO4SD3DCRO7W6IJQ&Signature=Bv1nsQCK%2FkyXdGHM8XeygD4jyvQ%3D&Expires=1598535655

This issue will be resolved if the data from the database tables can be flushed. On my local machine I am able to flush the table using the following command.

docker-compose exec web python3 manage.py flush

But I do not know how can I run this command on the CB Heroku server.
I am looking forward to if anyone can help me resolve this issue.

Priority: High
Project: https://app.crowdbotics.com/dashboard/app/17118

Best,
Awais

Just to confirm, there is no data in the DB that is needed and it’s fine to delete everything?

1 Like

Yes, it’s fine to delete everything.

The database has been reset. If you had created an admin user you’ll have to generate a new one.