<?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: Akrabat_Db_Schema_Manager: Zend Framework database migrations</title>
	<atom:link href="http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/feed/" rel="self" type="application/rss+xml" />
	<link>http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/</link>
	<description>Developing PHP software in the Real World, by Rob Allen</description>
	<lastBuildDate>Tue, 13 Mar 2012 12:47:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/#comment-88399</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Thu, 17 Nov 2011 12:24:55 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=967#comment-88399</guid>
		<description>No reason why you can&#039;t instantiate the schema manager directly in the same way that the provider does.</description>
		<content:encoded><![CDATA[<p>No reason why you can't instantiate the schema manager directly in the same way that the provider does.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vovkin</title>
		<link>http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/#comment-88353</link>
		<dc:creator>Vovkin</dc:creator>
		<pubDate>Thu, 17 Nov 2011 08:48:52 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=967#comment-88353</guid>
		<description>Hi Rob

how can I use this tool not from command line, but in regular php script, is it possible?

I&#039;m asking, because I want to add db migration functionality to pre_activate.php hook script(for update) and pre_rollback.php(for migrate to earlier db version), which runs during deployment to ZS/ZSCM.

So idea is just add Akrabat directory to library/ directory, and simple include necessary classes in pre_activate.php and pre_rollback.php and perform updating to necessary db version.</description>
		<content:encoded><![CDATA[<p>Hi Rob</p>
<p>how can I use this tool not from command line, but in regular php script, is it possible?</p>
<p>I'm asking, because I want to add db migration functionality to pre_activate.php hook script(for update) and pre_rollback.php(for migrate to earlier db version), which runs during deployment to ZS/ZSCM.</p>
<p>So idea is just add Akrabat directory to library/ directory, and simple include necessary classes in pre_activate.php and pre_rollback.php and perform updating to necessary db version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buho</title>
		<link>http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/#comment-88217</link>
		<dc:creator>Buho</dc:creator>
		<pubDate>Wed, 16 Nov 2011 15:34:40 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=967#comment-88217</guid>
		<description>i just try using the cast hint on the first command, it also worked:

zf update-to database-schema (int)0</description>
		<content:encoded><![CDATA[<p>i just try using the cast hint on the first command, it also worked:</p>
<p>zf update-to database-schema (int)0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buho</title>
		<link>http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/#comment-88216</link>
		<dc:creator>Buho</dc:creator>
		<pubDate>Wed, 16 Nov 2011 15:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=967#comment-88216</guid>
		<description>When you want to migrate to the first schema you can use this also

zf update-to database-schema 0

when asked again for a migrate version answer with (int) 0</description>
		<content:encoded><![CDATA[<p>When you want to migrate to the first schema you can use this also</p>
<p>zf update-to database-schema 0</p>
<p>when asked again for a migrate version answer with (int) 0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad</title>
		<link>http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/#comment-83925</link>
		<dc:creator>Mohammad</dc:creator>
		<pubDate>Thu, 20 Oct 2011 10:04:34 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=967#comment-83925</guid>
		<description>Nice tool - I have to admit though I dont like the term &quot;update&quot; - I think it would be better to call it &quot;migrate&quot;. Doing something like &quot;update-to&quot; when you really want to downgrade seems a bit weird.</description>
		<content:encoded><![CDATA[<p>Nice tool - I have to admit though I dont like the term "update" - I think it would be better to call it "migrate". Doing something like "update-to" when you really want to downgrade seems a bit weird.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allan Chappell</title>
		<link>http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/#comment-68627</link>
		<dc:creator>Allan Chappell</dc:creator>
		<pubDate>Wed, 13 Jul 2011 02:44:14 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=967#comment-68627</guid>
		<description>@Wanderson &amp; Rob
I happened upon the solution for the version 0 migration by accident. If you make the revision portion of the command a character, it will convert to the integer 0, therefore sending you all the way back to revision 0. It was unfortunate to find the hack the way I did, but it works :P I was trying to goto revision 3 and instead went to revision &quot;e&quot; because I fat fingered my keyboard.</description>
		<content:encoded><![CDATA[<p>@Wanderson &amp; Rob<br />
I happened upon the solution for the version 0 migration by accident. If you make the revision portion of the command a character, it will convert to the integer 0, therefore sending you all the way back to revision 0. It was unfortunate to find the hack the way I did, but it works :P I was trying to goto revision 3 and instead went to revision "e" because I fat fingered my keyboard.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce Morrison</title>
		<link>http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/#comment-51909</link>
		<dc:creator>Bruce Morrison</dc:creator>
		<pubDate>Fri, 04 Feb 2011 07:41:04 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=967#comment-51909</guid>
		<description>Hi Rob

Great stuff!

I&#039;m seeing the same response as Wanderson when running: 

$ zf update-to database-schema 0

There doesn&#039;t seem to be a way to run the down method on the first migration?

Cheers
Bruce</description>
		<content:encoded><![CDATA[<p>Hi Rob</p>
<p>Great stuff!</p>
<p>I'm seeing the same response as Wanderson when running: </p>
<p>$ zf update-to database-schema 0</p>
<p>There doesn't seem to be a way to run the down method on the first migration?</p>
<p>Cheers<br />
Bruce</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob...</title>
		<link>http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/#comment-46851</link>
		<dc:creator>Rob...</dc:creator>
		<pubDate>Tue, 14 Dec 2010 19:44:48 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=967#comment-46851</guid>
		<description>John,

Good catches - I&#039;ve updated and pushed.

Thanks!

Rob...</description>
		<content:encoded><![CDATA[<p>John,</p>
<p>Good catches - I've updated and pushed.</p>
<p>Thanks!</p>
<p>Rob...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Congdon</title>
		<link>http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/#comment-46778</link>
		<dc:creator>John Congdon</dc:creator>
		<pubDate>Tue, 14 Dec 2010 15:08:33 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=967#comment-46778</guid>
		<description>Also,

Your version is an int, so we can&#039;t use 201012140001 as a version number.  I manually changed it to a bigint field and it seems to work they way I want/need.  I really like the idea of the version being a date.</description>
		<content:encoded><![CDATA[<p>Also,</p>
<p>Your version is an int, so we can't use 201012140001 as a version number.  I manually changed it to a bigint field and it seems to work they way I want/need.  I really like the idea of the version being a date.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Congdon</title>
		<link>http://akrabat.com/zend-framework/akrabat_db_schema_manager-zend-framework-database-migrations/#comment-46776</link>
		<dc:creator>John Congdon</dc:creator>
		<pubDate>Tue, 14 Dec 2010 15:03:11 +0000</pubDate>
		<guid isPermaLink="false">http://akrabat.com/?p=967#comment-46776</guid>
		<description>The new version of the tool seems to require a prefix.  If you don&#039;t want one, it prefixes with an _.

Here&#039;s a diff

--- DatabaseSchemaProvider.php  2010-12-14 08:52:54.000000000 -0500
+++ DatabaseSchemaProvider_fix.php      2010-12-14 10:02:03.000000000 -0500
@@ -129,10 +129,9 @@
             $prefix = &#039;&#039;;
             if (isset($this-&gt;_config-&gt;resources-&gt;db-&gt;table_prefix)) {
                 $prefix = $this-&gt;_config-&gt;resources-&gt;db-&gt;table_prefix;
+               $this-&gt;_tablePrefix = $prefix.&#039;_&#039;;
             }
-            $this-&gt;_tablePrefix = $prefix.&#039;_&#039;;
         }
         return $this-&gt;_tablePrefix;
     }
-
-}
\ No newline at end of file
+}</description>
		<content:encoded><![CDATA[<p>The new version of the tool seems to require a prefix.  If you don't want one, it prefixes with an _.</p>
<p>Here's a diff</p>
<p>--- DatabaseSchemaProvider.php  2010-12-14 08:52:54.000000000 -0500<br />
+++ DatabaseSchemaProvider_fix.php      2010-12-14 10:02:03.000000000 -0500<br />
@@ -129,10 +129,9 @@<br />
             $prefix = '';<br />
             if (isset($this-&gt;_config-&gt;resources-&gt;db-&gt;table_prefix)) {<br />
                 $prefix = $this-&gt;_config-&gt;resources-&gt;db-&gt;table_prefix;<br />
+               $this-&gt;_tablePrefix = $prefix.'_';<br />
             }<br />
-            $this-&gt;_tablePrefix = $prefix.'_';<br />
         }<br />
         return $this-&gt;_tablePrefix;<br />
     }<br />
-<br />
-}<br />
\ No newline at end of file<br />
+}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

