D
D
Dima Shishkin2016-05-26 21:59:53
git
Dima Shishkin, 2016-05-26 21:59:53

How to work with a database when using Wordpress and GIT?

First, I'll tell you how I work now.
1. I deploy a git repository on the hosting and clone it locally.
2. I add WordPress, all files, except for wp-content, fall under version control.
3. While developing the database is local, then manually update it on the server.
Well, that is, in general, everything is OK, but so far you are working only with the database. Usually the editor uploads content on the production site, and I develop something on the local database. As a result, different versions of the database are obtained, which are not clear how to be friends.
How to merge a database? Ideally, one would like to be able to compare and update only the changed parts of the database. So far, I do not understand in the direction of which technologies to look.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
dmitriy, 2016-05-26
@dmitriylanets

I see two options: migrations and manual synchronization, for migrations you can use phing, it has the migration functionality, only php is needed for its operation. For manual synchronization, I use dbForgeStudio, this tool is great for comparing two databases and being able to synchronize both structure and data.

D
Dmitry, 2016-05-27
@dimasmagadan

https://versionpress.net/

A
Andrey Burov, 2016-05-26
@BuriK666

https://habrahabr.ru/post/121265/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question