<?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>Seán Hayes&#039; Blog &#187; database</title>
	<atom:link href="http://seanhayes.name/tag/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://seanhayes.name</link>
	<description>Web Developer</description>
	<lastBuildDate>Tue, 20 Jul 2010 14:51:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Cross Database Incompatibility Using Django South</title>
		<link>http://seanhayes.name/2010/01/09/cross-database-incompatibility/</link>
		<comments>http://seanhayes.name/2010/01/09/cross-database-incompatibility/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 14:11:12 +0000</pubDate>
		<dc:creator>Seán Hayes</dc:creator>
				<category><![CDATA[Web Design & Development]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[incompatibility]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[south]]></category>
		<category><![CDATA[sqlite]]></category>

		<guid isPermaLink="false">http://seanhayes.name/?p=128</guid>
		<description><![CDATA[When our team (at Govnex) started using South Migrations we encountered a cross-database compatibility issue. I was using MySQL on my local machine for its performance and so I could browse the database using phpMyAdmin, while our other members were &#8230; <a href="http://seanhayes.name/2010/01/09/cross-database-incompatibility/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When our team (at Govnex) started using South Migrations we encountered a cross-database compatibility issue. I was using MySQL on my local machine for its performance and so I could browse the database using phpMyAdmin, while our other members were using Sqlite on their local machines. The problem we encountered was migrations that worked my machine running MySQL were failing on their machines running Sqlite. We discovered the cause was some NOT NULL fields in our models which didn&#8217;t have defaults defined; the NOT NULL fields with no defaults were working fine in Sqlite when created using syncdb, so apparently it&#8217;s only when <em>updating</em> a table in Sqlite that they require defaults (this a caveat of Sqlite, not Django South).</p>
<p>Our immediate solution was to add default values to the necessary fields. However, in the end we decided to switch to MySQL on our development machines in order to ensure no future issues arise that might prevent our development code from working on our production server, which also runs MySQL. Hope this helps anyone who might be having the same issue.</p>

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://seanhayes.name/2010/01/09/test-database-django/" title="Using a Test Database in Django (Saturday, January 9, 2010)">Using a Test Database in Django</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://seanhayes.name/2010/01/09/cross-database-incompatibility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->