From: | Erik Jones <erik(at)myemma(dot)com> |
---|---|
To: | D'Arcy J(dot)M(dot) Cain <darcy(at)druid(dot)net> |
Cc: | "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>, "John Mitchell" <mitchelljj98(at)gmail(dot)com>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: How do I connect postgres table structures and view structures to an existing svn repository? |
Date: | 2007-08-01 20:37:20 |
Message-ID: | C64C6569-22BF-4FA6-A623-3E21F924E6B0@myemma.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
On Aug 1, 2007, at 1:17 PM, D'Arcy J.M. Cain wrote:
> On Wed, 1 Aug 2007 11:46:11 -0500
> "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com> wrote:
>> On 8/1/07, John Mitchell <mitchelljj98(at)gmail(dot)com> wrote:
>>> I am trying to store schema definitions in version-control which
>>> I can do by
>>> saving the definition and then importing into svn, but I would
>>> like it
>>> to be automatic , so that when an update occurs to a table or
>>> view within
>>> postgres then that table or view is flagged within svn. This
>>> would be
>>> similar to what I currently do with source code that I have for a
>>> web app
>>> within eclipse.
>>
>> My point being that you need to drive the changes from the svn side,
>> not the database side. I've seen no reliable way to do it otherwise,
>> but would love to be pleasantly surprised.
>
> You are right. It is always difficult to add structured control to
> unstructured development methods. The method that I suggested was the
> best I could think of to handle a database that is changed ad hoc with
> no design work beforehand. If you work from the design side first you
> can create schema documents that feed your database creation and use
> svn to save those versions and document exactly why things changed.
Another good idea is to include in these delta (or migration) scripts
the necessary sql to rollback the change. Then it's not too hard to
write a tool that you can give db connection params and a version #
to sync to.
Erik Jones
Software Developer | Emma®
erik(at)myemma(dot)com
800.595.4401 or 615.292.5888
615.292.0777 (fax)
Emma helps organizations everywhere communicate & market in style.
Visit us online at http://www.myemma.com
From | Date | Subject | |
---|---|---|---|
Next Message | Judith | 2007-08-01 21:19:02 | Authentification failed |
Previous Message | D'Arcy J.M. Cain | 2007-08-01 18:17:24 | Re: How do I connect postgres table structures and view structures to an existing svn repository? |