• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Migration or Console?

#1
Lightbulb 
Hello everyone, am new in php frameworks and I have a question. Is it a good practice to always create DBs and tables using migrations, or is it better to use the traditional way (console, phpmyadmin, adminer, pgsql, etc ...)?
Reply

#2
By migrations, you can track the history of changes to the database structure and roll back if necessary.
Reply

#3
I always start a new project using just PHPMyAdmin. If the project is getting more serious I start using migration and at about the same time I put the project under version control on Github so that I have backup and I can use branches. Rarely I catch the correct moment for this, sometimes I am late, sometimes I do it too early. But that's the way I do it.
Reply

#4
Either use a .env file to set it, or an envrionment varia
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.