9

$rant = false;
Let say you guys are working in a team of 3 and need to share a database. All of you are in different locations.

I am currently hosting my database on online server, which is kind of slow for me because I have poor Internet in my country. How do you guys do it?

Comments
  • 1
    Spin it up on Azure!?
  • 0
  • 0
    Alternatively if you dont need the same data use somewhat like laravel's migrations. With them, you can easily share database layouts as php files and everyone just has to run the migrate command to have a database that fits the development state.
  • 0
    What @h3ll said pretty much.
  • 0
    Yeah normally you dont need the actual data on db, update schema through migrations. Use local db. We use docker and docker-compose so all our devs have the same dev environment.

    Its too risky to use shared database as you dont know what others might be doing with it.
  • 0
    Migrate script in your git pull hook
  • 0
    I use a tool called RoundhousE. It's a database versioning tool that works off scripts in the git repo. It's quick, helpful, and painless (unless you get a SQL error, then you need god on your side!)
Add Comment