Database Versioning [duplicate]

0

I use Git % + SourceTree for versioning and project sharing with other members of esquipe.

But we have some problems related to the Database. Is it possible to share it? As for example commit BD and then pull by another user?

    
asked by anonymous 28.06.2016 / 15:52

1 answer

-1

The versioning of the database has its own tool: it is called "migration".

Virtually all PHP frameworks have their own migration feature.

But I've worked on projects that just had NO frameworks ... (amazing). In this case I created a folder called "migrations" inside the project and in that folder I instanciei a subproject of Laravel. I have not used Laravel for anything other than generating the migrations to the bank. Yes, it is a gambiarra, but it ended the problem of database versioning between developers:

If interested, follow the link: link

Develop a project without framework and without migrations ... Well, it works if you work alone ... But just put 2 developers working together that turns into hell ...

    
28.08.2017 / 12:07