Version database structure and content

From: Esben Mose Hansen <kde(at)mosehansen(dot)dk>
To: "'pgsql-admin(at)postgresql(dot)org'" <pgsql-admin(at)postgresql(dot)org>
Subject: Version database structure and content
Date: 2007-11-16 20:41:53
Message-ID: 200711162141.53831.kde@mosehansen.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

I'm looking for a way to handle database structure and data maintenance in way
that would make changing the structure versioned and controlled. What I
imagine is something akin to Rails::Migrations, where each version had a
piece of code to upgrade the database from the previous version to the this
version, and another to downgrade this version to the previous version. Some
rake (ruby make) scripts meant that I could write

rake db/migrate

or something in that order to get the database into current version, and

rake db/migrate VERSION=007

to get it to version 7.

However, Rails::Migrations is tightly tied to rails (big surprise). Does
anyone know of an alternative to Rails::Migrations, which might be reasonable
to use in a non-rails project?

Thanks!
--
regards, Esben

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Marlowe 2007-11-16 21:18:14 Re: PostgreSQL - Services delivery query ?
Previous Message Brad Nicholson 2007-11-16 20:04:48 Re: trigger ddl actions in a table