Good day. Several developers use GIT to work with a site that is made on WordPress.

Database problems. How can it merdzhit? Maybe there is a solution or thoughts on this?

  • 2
    Why merzhit database? This is a bunch of information that will be saved each time. On GitHub you can, of course, but I don’t see the point, the repository will grow too fast. I can offer: upload it to a separate server and contact everyone. - Vadim Prokopchuk
  • 2
    The database is generally not under version control. You can only version scripts for its creation, migrations, etc. - Nick Volynkin
  • Everyone can not access it. Someone makes their tests and I can spoil the database. Therefore, you need to somehow have it already on PROD-e merge. - Pavel Zhukovsky

1 answer 1

Look at Liquibase . This program allows you to describe database changes in various formats (XML, YAML, JSON and SQL) and apply them in the correct sequence. She keeps track of which changes have been applied and which are not. Allows you to roll back changes and apply them again. Since changes are stored in text files, they can (and should) be placed in the version control system.