I'm in the process of building a Laravel application and I started with the database design. I implemented this directly on the commandline (mysql).
Now, I have this lingering concern as for what this could lead to in the coming development cycles.
I do know that I miss out on the version control as well as the rollback of database structure changes that php artisan provides.
php artisan make:migration?I could really use your input based on this situation of Laravel/PHP development in many cycles without database migration control?
Please advice.
Yes, In my opinion you should go for using migrations. Migrations provide a great interface to change database structure in version controlled manner.
For instance, If in future you have to move from mysql to some other database system. Following your current approach your would have to create all the db structures according to the new system.
While using migrations, you just have to update a config file for the db driver. And you are done.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With