threads / discuss / 24194

Maintaing database schemas using GIT

Subject: Maintaing database schemas using GIT

## tl;dr

2 messages between Jun 25, 2010 and Jun 25, 2010.

replies: 1people: 2as markdown or json

Bartosz Wiklak· Jun 25, 2010, 12:56 UTC · lore
Hi,

I am interested in maintaing database schemas using GIT. I found very promising tool apgdiff http://apgdiff.sourceforge.net/ that I believe can be used to manage other databases than postrgresql.

My problem is:

How to make git process sql dumps differently then other text and binary files - apply apgdiff to them and eventually provide some merge functionality? Is this possible? Is this sensible rational?

What do you think? Thanks, Bartek

Clément Poulain· Jun 25, 2010, 13:24 UTC · re: Bartosz Wiklak · lore

Re: Maintaing database schemas using GIT

Git allows you to specify an external diff driver for some kind of files:
http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html#_defining_an_external_diff_driver
This should help you

← back to recent threads