We have several branches of one project that have about half the code and develop them at the same time as git checking. Now the problem arose when the model became so different that it was no longer possible to save the same database for their development. I could specify the database name in config / databases.yml specifically for each branch, but it is not tracked. Another solution would be to track an external file with a branch name, for example config / branch.txt, and reference it in config / databases.yml:
all: doctrine: class: sfDoctrineDatabase param: dsn: 'pgsql:host=localhost;dbname=<?php echo file_get_contents (realpath(__DIR__ . '/branch.txt')) ?>'
Anyway, how do you handle this?
source share