<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Database Schema Version Control Tool</title>
	<atom:link href="http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/</link>
	<description>Professional Software Development by Ash Tewari</description>
	<lastBuildDate>Sun, 22 Jan 2012 23:43:32 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: tewari</title>
		<link>http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/comment-page-1/#comment-626</link>
		<dc:creator>tewari</dc:creator>
		<pubDate>Thu, 06 Jan 2011 02:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/#comment-626</guid>
		<description>Hi Shannon, There are a few different way to handle your requirement. I would suggest that you create a wrapper tool/script that backs up the target database, launches DbUpdater, waits for it to finish and depending on the exit code of the DbUpdater process, decides whether to restore the backup (if there was an error during schema update) or delete the backup (if DbUpdater returned successfully). If I remember correctly, a non-zero exit code will indicate an error (You might want to confirm this). You can get source code here - http://sourceforge.net/projects/dbupdater/develop

Let me know how it goes.</description>
		<content:encoded><![CDATA[<p>Hi Shannon, There are a few different way to handle your requirement. I would suggest that you create a wrapper tool/script that backs up the target database, launches DbUpdater, waits for it to finish and depending on the exit code of the DbUpdater process, decides whether to restore the backup (if there was an error during schema update) or delete the backup (if DbUpdater returned successfully). If I remember correctly, a non-zero exit code will indicate an error (You might want to confirm this). You can get source code here &#8211; <a href="http://sourceforge.net/projects/dbupdater/develop" rel="nofollow">http://sourceforge.net/projects/dbupdater/develop</a></p>
<p>Let me know how it goes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shannon Holck</title>
		<link>http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/comment-page-1/#comment-625</link>
		<dc:creator>Shannon Holck</dc:creator>
		<pubDate>Tue, 28 Dec 2010 17:23:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/#comment-625</guid>
		<description>Thanks for the tool.  I&#039;ve been looking at it to see if it could fit our needs, and had a question.  I played around with the SQL Server version and added a few update scripts to see what would happen and it picked them up quite nicely, but I was also curious what it would do if it hit an error.  It correctly did not update the SchemaChanges table, but if some of the changes succeeded before the other changes failed, those changes were still committed to the database even though the SchemaChanges table was not updated.  Do I need to write my scripts so that they contain a try/catch?  Or what do you recommend?  I never know what condition the sandbox databases might be in. For example, if my script is inserting test data, should I check for existence of the row before every insert statement so that I have granular control?  Your thoughts would be greatly appreciated.

Also, I am planning to use a custom version of the SchemaChanges table since I want to store a little more information on the contents of the script.  Is there a way for me to customize DBUpdater? Or, as @Bugstad asked above, is the source code available?</description>
		<content:encoded><![CDATA[<p>Thanks for the tool.  I&#8217;ve been looking at it to see if it could fit our needs, and had a question.  I played around with the SQL Server version and added a few update scripts to see what would happen and it picked them up quite nicely, but I was also curious what it would do if it hit an error.  It correctly did not update the SchemaChanges table, but if some of the changes succeeded before the other changes failed, those changes were still committed to the database even though the SchemaChanges table was not updated.  Do I need to write my scripts so that they contain a try/catch?  Or what do you recommend?  I never know what condition the sandbox databases might be in. For example, if my script is inserting test data, should I check for existence of the row before every insert statement so that I have granular control?  Your thoughts would be greatly appreciated.</p>
<p>Also, I am planning to use a custom version of the SchemaChanges table since I want to store a little more information on the contents of the script.  Is there a way for me to customize DBUpdater? Or, as @Bugstad asked above, is the source code available?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maxim Antonov</title>
		<link>http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/comment-page-1/#comment-617</link>
		<dc:creator>Maxim Antonov</dc:creator>
		<pubDate>Wed, 07 Jul 2010 21:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/#comment-617</guid>
		<description>Hi there! 
Some months ago I searched tool for versioning MySQL schema. I found many useful tools, like Doctrine migration, RoR migration, some tools writen in Java and Python.

But no one of them was satisfied my requirements.

My requirements:

1. No requirements , exclude PHP and MySQL 
2. No schema configuration files, like schema.yml in Doctrine
3. Able to read current schema from connection and create new migration script, than represent identical schema in other installations of application.

I started to write my migration tool, and today I have beta version.

Please, try it, if you have an interest in this topic.
Please send me future requests and bugreports.

Source code: bitbucket.org/idler/mmp/src
Overview in English: bitbucket.org/idler/mmp/wiki/Home
Overview in Russian: antonoff.info/development/mysql-migration-with-php-project</description>
		<content:encoded><![CDATA[<p>Hi there!<br />
Some months ago I searched tool for versioning MySQL schema. I found many useful tools, like Doctrine migration, RoR migration, some tools writen in Java and Python.</p>
<p>But no one of them was satisfied my requirements.</p>
<p>My requirements:</p>
<p>1. No requirements , exclude PHP and MySQL<br />
2. No schema configuration files, like schema.yml in Doctrine<br />
3. Able to read current schema from connection and create new migration script, than represent identical schema in other installations of application.</p>
<p>I started to write my migration tool, and today I have beta version.</p>
<p>Please, try it, if you have an interest in this topic.<br />
Please send me future requests and bugreports.</p>
<p>Source code: bitbucket.org/idler/mmp/src<br />
Overview in English: bitbucket.org/idler/mmp/wiki/Home<br />
Overview in Russian: antonoff.info/development/mysql-migration-with-php-project</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tewari</title>
		<link>http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/comment-page-1/#comment-21</link>
		<dc:creator>tewari</dc:creator>
		<pubDate>Sun, 21 Sep 2008 06:58:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/#comment-21</guid>
		<description>DbUpdater version 1.4 fixes two bugs -
1. If you only have 1 db changes file, DbUpdater will not recognize that there are any changes.
2. When you have indexes and foreign keys scripted in our baseline.sql file, the exe hangs. 

Adrian and Cory, Thanks for your feedback.</description>
		<content:encoded><![CDATA[<p>DbUpdater version 1.4 fixes two bugs -<br />
1. If you only have 1 db changes file, DbUpdater will not recognize that there are any changes.<br />
2. When you have indexes and foreign keys scripted in our baseline.sql file, the exe hangs. </p>
<p>Adrian and Cory, Thanks for your feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory</title>
		<link>http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/comment-page-1/#comment-19</link>
		<dc:creator>Cory</dc:creator>
		<pubDate>Mon, 15 Sep 2008 18:46:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/#comment-19</guid>
		<description>We&#039;re trying to use your DbUpdater, but when I have indexes and foreign keys scripted in our baseline.sql file, the exe hangs. 

The baseline.sql file runs perfectly fine in SQL Management Studio.  DbUpdater will work if I remove all the indexes and foreign keys from baseline.sql and move them to post.X.sql scripts. 

We&#039;ve also noticed that if you only have 1 db changes file, DbUpdater will not recognize that there are any changes. We have had to create 2 db changes files before the DbUpdater would notice the updates.</description>
		<content:encoded><![CDATA[<p>We&#8217;re trying to use your DbUpdater, but when I have indexes and foreign keys scripted in our baseline.sql file, the exe hangs. </p>
<p>The baseline.sql file runs perfectly fine in SQL Management Studio.  DbUpdater will work if I remove all the indexes and foreign keys from baseline.sql and move them to post.X.sql scripts. </p>
<p>We&#8217;ve also noticed that if you only have 1 db changes file, DbUpdater will not recognize that there are any changes. We have had to create 2 db changes files before the DbUpdater would notice the updates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Bjugstad</title>
		<link>http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/comment-page-1/#comment-13</link>
		<dc:creator>Chris Bjugstad</dc:creator>
		<pubDate>Fri, 11 Jul 2008 13:01:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/#comment-13</guid>
		<description>Interesting tool...I&#039;m trying to implement this at my current employer and would be interested in seeing the source code (if you are willing to share).  I&#039;m trying to get dba buy-in on the process and it would be helpful to articulate everything that is going to be done to the db.</description>
		<content:encoded><![CDATA[<p>Interesting tool&#8230;I&#8217;m trying to implement this at my current employer and would be interested in seeing the source code (if you are willing to share).  I&#8217;m trying to get dba buy-in on the process and it would be helpful to articulate everything that is going to be done to the db.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Hara</title>
		<link>http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/comment-page-1/#comment-10</link>
		<dc:creator>Adrian Hara</dc:creator>
		<pubDate>Wed, 25 Jun 2008 08:43:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.tewari.info/2008/02/18/dbupdater-database-schema-version-control/#comment-10</guid>
		<description>Hello,

I&#039;ve tried the tool and it runs forever after it says &quot;executing baseline.sql&quot;. I&#039;m running it against a sql2000 server and a 400kb baseline.sql.

Any ideas why?

Thanks</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I&#8217;ve tried the tool and it runs forever after it says &#8220;executing baseline.sql&#8221;. I&#8217;m running it against a sql2000 server and a 400kb baseline.sql.</p>
<p>Any ideas why?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

