<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The eflow blog &#187; liquibase</title>
	<atom:link href="http://blog.eflow.org/archives/tag/liquibase/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.eflow.org</link>
	<description>Insert some amazingly witty tagline here</description>
	<lastBuildDate>Fri, 09 Dec 2011 18:59:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Ignoring Foreign Key Checks in Liquibase</title>
		<link>http://blog.eflow.org/archives/143</link>
		<comments>http://blog.eflow.org/archives/143#comments</comments>
		<pubDate>Wed, 10 Feb 2010 01:17:53 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[babble]]></category>
		<category><![CDATA[liquibase]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://blog.eflow.org/?p=143</guid>
		<description><![CDATA[This seems fairly simple in hindsight, but I had a difficult time finding an answer to it, so I putting it down here for posterity&#8217;s sake. SET FOREIGN_KEY_CHECKS=0 I put this as the first changeset in a liquibase xml file. This disables the foreign key and constraint checking in mysql. This would work for other [...]]]></description>
			<content:encoded><![CDATA[<p>This seems fairly simple in hindsight, but I had a difficult time finding an answer to it, so I putting it down here for posterity&#8217;s sake.</p>
<blockquote><p>
 <changeSet author="ben" id="disable-foreign-key-checks" runAlways="true" dbms="mysql"><br />
     <sql>SET FOREIGN_KEY_CHECKS=0</sql><br />
 </changeSet>
</p></blockquote>
<p>I put this as the first changeset in a liquibase xml file.  This disables the foreign key and constraint checking in mysql. This would work for other db&#8217;s as well, but I haven&#8217;t looked up their syntax just yet.  </p>
 <img src="http://blog.eflow.org/wp-content/plugins/feed-statistics.php?view=1&post_id=143" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.eflow.org/archives/143/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenMRS Database Creation Error &#8211; Errcode 17</title>
		<link>http://blog.eflow.org/archives/268</link>
		<comments>http://blog.eflow.org/archives/268#comments</comments>
		<pubDate>Mon, 19 Oct 2009 09:12:31 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[babble]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[liquibase]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[openmrs]]></category>

		<guid isPermaLink="false">http://blog.eflow.org/?p=268</guid>
		<description><![CDATA[A programmer here at AMPATH (Gilbert Tuwei) had some issues installing mysql. The error message was very unhelpful and the solution was equally puzzling, so I want to put here to for the mighty google to find. Tuwei was running v5.0.17 of MySQL. Upgrading to version 5.1.31 made the problem disappear. WARN &#8211; InitializationFilter$InitializationCompletion$1.run(823) &#124;2009-10-02 [...]]]></description>
			<content:encoded><![CDATA[<p>A programmer here at AMPATH (Gilbert Tuwei) had some issues installing mysql.  The error message was very unhelpful and the solution was equally puzzling, so I want to put here to for the mighty google to find.</p>
<p>Tuwei was running v5.0.17 of MySQL.  Upgrading to version 5.1.31 made the problem disappear.</p>
<blockquote><p>WARN &#8211; InitializationFilter$InitializationCompletion$1.run(823) |2009-10-02 15:24:21,000| Error while trying to update to the latest database version<br />
org.openmrs.util.DatabaseUpdateException: There was an error while updating the database to the latest. file: liquibase-update-to-latest.xml. Error: Migration failed for change set liquibase-update-to-latest.xml::2::upul:<br />
     Reason:<br />
          java.sql.SQLException: Can&#8217;t create/write to file &#8216;C:\WINDOWS\TEMP\#sql_fe4_0.MYI&#8217; (Errcode: 17):<br />
          Caused By: Precondition Error<br />
	at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:145)<br />
	at org.openmrs.web.filter.initialization.InitializationFilter$InitializationCompletion$1.run(InitializationFilter.java:817)<br />
	at java.lang.Thread.run(Unknown Source)<br />
Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::2::upul:<br />
     Reason:<br />
          java.sql.SQLException: Can&#8217;t create/write to file &#8216;C:\WINDOWS\TEMP\#sql_fe4_0.MYI&#8217; (Errcode: 17):<br />
          Caused By: Precondition Error<br />
	at liquibase.ChangeSet.execute(ChangeSet.java:204)<br />
	at liquibase.parser.visitor.UpdateVisitor.visit(UpdateVisitor.java:26)<br />
	at org.openmrs.util.DatabaseUpdater$1OpenmrsUpdateVisitor.visit(DatabaseUpdater.java:177)<br />
	at liquibase.parser.ChangeLogIterator.run(ChangeLogIterator.java:41)<br />
	at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:201)<br />
	at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:142)<br />
	&#8230; 2 more<br />
Caused by: liquibase.exception.PreconditionErrorException: Precondition Error<br />
	at liquibase.preconditions.ForeignKeyExistsPrecondition.check(ForeignKeyExistsPrecondition.java:36)<br />
	at liquibase.preconditions.NotPrecondition.check(NotPrecondition.java:18)<br />
	at liquibase.preconditions.AndPrecondition.check(AndPrecondition.java:21)<br />
	at liquibase.ChangeSet.execute(ChangeSet.java:169)<br />
	&#8230; 7 more</p></blockquote>
 <img src="http://blog.eflow.org/wp-content/plugins/feed-statistics.php?view=1&post_id=268" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://blog.eflow.org/archives/268/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

