jeudi 25 février 2016

What is the best practice to fix bad data in one of the table in the database?

Problem

I have a bad data in one of my table in my database, and it requires me to truncate a table. I can do it with no problem, but what about my team, QAs, and other developers - that already have the code, and bad data. Do they need to truncate their table manually too ? How do people usually deal with something like this ?


Solution

If I truncate that table via migration script, is it a good idea ? Is there anything bad about it ? Then, my whole team will just need to run : php artisan migrate.


I'm open to any suggestions on this.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire