Is the database migration of Laravel useful?

I mainly think that it is enough to create a database once. In the future, you can import directly under linux and windows using modified fields, using the mysql command line or navacate. It is also very simple to install doctrine/dbal dependencies if you use laravel. Why do I think it is a bit troublesome to use migrate? I would like to ask you the actual work of using laravel database migration? Or create the data table manually?

Mar.11,2022

Database migration function is mainly used for team collaboration, and database field modifications and updates are also stored on the git score


if you are an individual developer, creating tables for data migration is not very useful, but will increase development costs.
if you are in the company to develop a complete process, the development database in the local area network, the test database in the external network test server, online production database. At the beginning of the development, the table has been designed according to the functional requirements, and then the database has been built through the database management tool. At this time you need to change a function of the database, if you directly modify the table structure of one of the databases or add or decrease tables will cause other not Synchronize, if you use a table migration it is easy to do Synchronize.

Menu