The easiest way to get started is to simply dump the database into a single file and store it in git, as well as in the sources. But be sure not to leak this file into production webroot, so some schema.sql not available in HTTP. It is convenient to store sources in /webroot and db in the /db subdirectories of your repository, creating the actual root /webroot web server.
Then you will see some updates and merges and even conflicts around this file - they should be resolved, as usual, in your code files.
After all the merges and conflict resolution of both the schema code and the executable code, you should carefully test the application at the end.
source share