Is there a good way to check database structure into a SVN? Perhaps checking in a DDL file when changed?
Any ideas?
Is there a good way to check database structure into a SVN? Perhaps checking in a DDL file when changed?
Any ideas?
Sure, but unless it's strictly a development database you'll probably also include some data-migration routines between versions. You'll want to be able to have complete freedom to drop columns, which means you'll want to be able to bring everything back later if design requirements require them. For a better illustration of what I mean, check out how Rails handles migrations.
http://stackoverflow.com/questions/1607/mechanisms-for-tracking-db-schema-changes
http://stackoverflow.com/questions/173/how-do-i-version-my-ms-sql-database-in-svn
I've never done it, but one of those might answer your question (not sure, haven't read them thoroughly)