<?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: HTML5 Web SQL Database &#8211; Intro to Versioning and Migrations</title>
	<atom:link href="http://blog.maxaller.name/2010/03/html5-web-sql-database-intro-to-versioning-and-migrations/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.maxaller.name/2010/03/html5-web-sql-database-intro-to-versioning-and-migrations/</link>
	<description>ruby, ubuntu, etc</description>
	<lastBuildDate>Tue, 03 Aug 2010 17:02:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Max</title>
		<link>http://blog.maxaller.name/2010/03/html5-web-sql-database-intro-to-versioning-and-migrations/comment-page-1/#comment-314</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Sun, 06 Jun 2010 01:48:18 +0000</pubDate>
		<guid isPermaLink="false">http://blog.maxaller.name/?p=263#comment-314</guid>
		<description>Robin, it&#039;s worth noting that the Webkit bug you mention was supposedly fixed in October 2009.  Naturally, this doesn&#039;t mean that the fix has been picked up by all browsers using the Webkit engine, but the fix will propagate eventually.</description>
		<content:encoded><![CDATA[<p>Robin, it&#8217;s worth noting that the Webkit bug you mention was supposedly fixed in October 2009.  Naturally, this doesn&#8217;t mean that the fix has been picked up by all browsers using the Webkit engine, but the fix will propagate eventually.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin</title>
		<link>http://blog.maxaller.name/2010/03/html5-web-sql-database-intro-to-versioning-and-migrations/comment-page-1/#comment-313</link>
		<dc:creator>Robin</dc:creator>
		<pubDate>Sun, 06 Jun 2010 01:01:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.maxaller.name/?p=263#comment-313</guid>
		<description>schory, not only does it not work on iPhone, it also doesn&#039;t work on certain Safari versions because of a bug (id 27836, see https://bugs.webkit.org/show_bug.cgi?id=27836 )

I&#039;ve found a workaround like this :

			_db.changeVersion(_db.version, version,
				function(tx){ // transaction
					tx.executeSql(migrations[version]);
				},
				function(err){ // error
					if (err.code == 2) {
						// Safari bug 27836 probably occured
						// changeVersion() will never work on a Safari version with this bug, so we need to do the transaction again, and manually maintain the version number
						_doSafariBugMigration(versions, migration);
					}
					JuSy.log(err);
				},
				function(){ // success
					JuSy.log(&quot;[Html5Db] Database migrated to version : &quot; + version);
					_doMigration(versions, migrations);
				}
			); // end changeVersion()


I know it&#039;s fighting a symptom instead of solving the problem, but I can&#039;t think of any other way...</description>
		<content:encoded><![CDATA[<p>schory, not only does it not work on iPhone, it also doesn&#8217;t work on certain Safari versions because of a bug (id 27836, see <a href="https://bugs.webkit.org/show_bug.cgi?id=27836" rel="nofollow">https://bugs.webkit.org/show_bug.cgi?id=27836</a> )</p>
<p>I&#8217;ve found a workaround like this :</p>
<p>			_db.changeVersion(_db.version, version,<br />
				function(tx){ // transaction<br />
					tx.executeSql(migrations[version]);<br />
				},<br />
				function(err){ // error<br />
					if (err.code == 2) {<br />
						// Safari bug 27836 probably occured<br />
						// changeVersion() will never work on a Safari version with this bug, so we need to do the transaction again, and manually maintain the version number<br />
						_doSafariBugMigration(versions, migration);<br />
					}<br />
					JuSy.log(err);<br />
				},<br />
				function(){ // success<br />
					JuSy.log(&#8220;[Html5Db] Database migrated to version : &#8221; + version);<br />
					_doMigration(versions, migrations);<br />
				}<br />
			); // end changeVersion()</p>
<p>I know it&#8217;s fighting a symptom instead of solving the problem, but I can&#8217;t think of any other way&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://blog.maxaller.name/2010/03/html5-web-sql-database-intro-to-versioning-and-migrations/comment-page-1/#comment-305</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Tue, 01 Jun 2010 17:56:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.maxaller.name/?p=263#comment-305</guid>
		<description>Hmm, that&#039;s pesky.  I&#039;ll see if there&#039;s anything I can do about it.  I won&#039;t be able to test it on the iPhone, but of course I can test it on Safari for Windows.  I&#039;ll send you an email when I update the post.</description>
		<content:encoded><![CDATA[<p>Hmm, that&#8217;s pesky.  I&#8217;ll see if there&#8217;s anything I can do about it.  I won&#8217;t be able to test it on the iPhone, but of course I can test it on Safari for Windows.  I&#8217;ll send you an email when I update the post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: schory</title>
		<link>http://blog.maxaller.name/2010/03/html5-web-sql-database-intro-to-versioning-and-migrations/comment-page-1/#comment-304</link>
		<dc:creator>schory</dc:creator>
		<pubDate>Tue, 01 Jun 2010 07:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.maxaller.name/?p=263#comment-304</guid>
		<description>Elegant and very useful!

Sadly enough, Migrator won&#039;t work on iPhone because the new database version number becomes visible in Safari only in future sessions. See last paragraph in: http://developer.apple.com/safari/library/documentation/iphone/conceptual/safarijsdatabaseguide/usingthejavascriptdatabase/usingthejavascriptdatabase.html

Any attentions on publishing a version that works around that problem? Is it possible to have Migrator check and update the version number only once while executing the entire migrations array?</description>
		<content:encoded><![CDATA[<p>Elegant and very useful!</p>
<p>Sadly enough, Migrator won&#8217;t work on iPhone because the new database version number becomes visible in Safari only in future sessions. See last paragraph in: <a href="http://developer.apple.com/safari/library/documentation/iphone/conceptual/safarijsdatabaseguide/usingthejavascriptdatabase/usingthejavascriptdatabase.html" rel="nofollow">http://developer.apple.com/safari/library/documentation/iphone/conceptual/safarijsdatabaseguide/usingthejavascriptdatabase/usingthejavascriptdatabase.html</a></p>
<p>Any attentions on publishing a version that works around that problem? Is it possible to have Migrator check and update the version number only once while executing the entire migrations array?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://blog.maxaller.name/2010/03/html5-web-sql-database-intro-to-versioning-and-migrations/comment-page-1/#comment-274</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Mon, 26 Apr 2010 16:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.maxaller.name/?p=263#comment-274</guid>
		<description>Uh....gzip your javascript?  :)  That is a valid point.  One solution I can think of is to break up your migrations into like groups of 10 or something, then detect which migrations a user needs to download, i.e. if I&#039;m going from schema v15 to v25, I&#039;ll need to download migrations1.js and migrations2.js, but if I&#039;m going from v24 to v25 I only need migrations2.js.  Annoying, but I&#039;m sure a system could be worked out for that fairly easily.</description>
		<content:encoded><![CDATA[<p>Uh&#8230;.gzip your javascript?  <img src='http://blog.maxaller.name/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   That is a valid point.  One solution I can think of is to break up your migrations into like groups of 10 or something, then detect which migrations a user needs to download, i.e. if I&#8217;m going from schema v15 to v25, I&#8217;ll need to download migrations1.js and migrations2.js, but if I&#8217;m going from v24 to v25 I only need migrations2.js.  Annoying, but I&#8217;m sure a system could be worked out for that fairly easily.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Geal</title>
		<link>http://blog.maxaller.name/2010/03/html5-web-sql-database-intro-to-versioning-and-migrations/comment-page-1/#comment-273</link>
		<dc:creator>Geal</dc:creator>
		<pubDate>Mon, 26 Apr 2010 09:56:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.maxaller.name/?p=263#comment-273</guid>
		<description>Thank you, this is definitely useful! I was wondering how web developers expected to update their applications for users with different versions, and you answered it :)

Now, the annoying question: won&#039;t the code become too big overtime, if you have to embed all the migration scripts?</description>
		<content:encoded><![CDATA[<p>Thank you, this is definitely useful! I was wondering how web developers expected to update their applications for users with different versions, and you answered it <img src='http://blog.maxaller.name/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now, the annoying question: won&#8217;t the code become too big overtime, if you have to embed all the migration scripts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: opendatabase</title>
		<link>http://blog.maxaller.name/2010/03/html5-web-sql-database-intro-to-versioning-and-migrations/comment-page-1/#comment-265</link>
		<dc:creator>opendatabase</dc:creator>
		<pubDate>Fri, 02 Apr 2010 12:05:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.maxaller.name/?p=263#comment-265</guid>
		<description>[...] (required) Website. This template is licensed under a Creative Commons Attribution-Noncommercial ...HTML5 Web SQL Database Intro to Versioning and Migrations ...If you specify it, the openDatabase method will fail unless the database matches the ... by setting [...]</description>
		<content:encoded><![CDATA[<p>[...] (required) Website. This template is licensed under a Creative Commons Attribution-Noncommercial &#8230;HTML5 Web SQL Database Intro to Versioning and Migrations &#8230;If you specify it, the openDatabase method will fail unless the database matches the &#8230; by setting [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
