ricardochimal / taps

simple database import/export app
MIT License
1.2k stars 140 forks source link

Taps Deleted Everything #100

Closed bendangelo closed 9 years ago

bendangelo commented 12 years ago

So I just discovered taps and thought it was a great way to pull data from heroku and edit stuff locally. So I used heroku db:pull to get the database and that worked fine.

When I was finished making changes, I decided to push it. So I typed in heroku db:push. I got no errors nothing, it did mention, sending data 10 tables, 27 records, even though the database has at least 500 records.

After that finished, it printed Resetting sequences and all my data was lost on heroku and locally.

This sucks pretty hard. I'm not sure if I did something wrong but why would it delete everything locally if I was pushing?

bendangelo commented 12 years ago

Ok I found the issue. If the database schema is not the same on heroku it deletes all data. Just db:migrate before pushing