[fw-general] Database Migrations - Yes, No, Maybe?
Coming to ZF from a Rails background (because I'm much stronger in PHP than in Ruby), one of the things that irks me is the *apparent* lack of a formal database migration system. In Rails, you create migration files, define the structure and/or changes in a DB-neutral context, then run the migration to have the changes made to your database, be it MySQL, Oracle, MSSQL, etc. Does this functionality exist with Zend Framework at all? I haven't seen any mention of it in tutorials or other information, but since I'm new, I figure chances are I'm missing something. If this doesn't exist, is it planned? Thanks.
Re: [fw-general] Database Migrations - Yes, No, Maybe?
does not exist and is not planned from what i can see in the proposals (there is one proposal, but its inactive for many months). if you want to use a formal migration system use Doctrine, Propel or ezcDatabaseSchema. All great components. Since ZF does not enforce a model component on you, its very easy to switch them in. Benjamin On Friday 07 November 2008 19:15:24 Phoenix wrote: Coming to ZF from a Rails background (because I'm much stronger in PHP than in Ruby), one of the things that irks me is the *apparent* lack of a formal database migration system. In Rails, you create migration files, define the structure and/or changes in a DB-neutral context, then run the migration to have the changes made to your database, be it MySQL, Oracle, MSSQL, etc. Does this functionality exist with Zend Framework at all? I haven't seen any mention of it in tutorials or other information, but since I'm new, I figure chances are I'm missing something. If this doesn't exist, is it planned? Thanks. -- Benjamin Eberlei http://www.beberlei.de
Re: [fw-general] Database Migrations - Yes, No, Maybe?
This is something that I expect we'll see after Zend_Tool is completed and we approach 2.0, along with generators. Trust me, I want to see those things, too. :-) -Matt On Fri, Nov 7, 2008 at 10:41 AM, Benjamin Eberlei [EMAIL PROTECTED]wrote: does not exist and is not planned from what i can see in the proposals (there is one proposal, but its inactive for many months). if you want to use a formal migration system use Doctrine, Propel or ezcDatabaseSchema. All great components. Since ZF does not enforce a model component on you, its very easy to switch them in. Benjamin On Friday 07 November 2008 19:15:24 Phoenix wrote: Coming to ZF from a Rails background (because I'm much stronger in PHP than in Ruby), one of the things that irks me is the *apparent* lack of a formal database migration system. In Rails, you create migration files, define the structure and/or changes in a DB-neutral context, then run the migration to have the changes made to your database, be it MySQL, Oracle, MSSQL, etc. Does this functionality exist with Zend Framework at all? I haven't seen any mention of it in tutorials or other information, but since I'm new, I figure chances are I'm missing something. If this doesn't exist, is it planned? Thanks. -- Benjamin Eberlei http://www.beberlei.de
RE: [fw-general] Database Migrations - Yes, No, Maybe?
If I'm not mistaken, Rob Allen originally proposed DB migrations some time back. Last I heard, he was planning to refactor that proposal to build on Zend_Tool. Rob, how off am I? ,Wil -Original Message- From: Benjamin Eberlei [mailto:[EMAIL PROTECTED] Sent: Friday, November 07, 2008 10:41 AM To: fw-general@lists.zend.com Subject: Re: [fw-general] Database Migrations - Yes, No, Maybe? does not exist and is not planned from what i can see in the proposals (there is one proposal, but its inactive for many months). if you want to use a formal migration system use Doctrine, Propel or ezcDatabaseSchema. All great components. Since ZF does not enforce a model component on you, its very easy to switch them in. Benjamin On Friday 07 November 2008 19:15:24 Phoenix wrote: Coming to ZF from a Rails background (because I'm much stronger in PHP than in Ruby), one of the things that irks me is the *apparent* lack of a formal database migration system. In Rails, you create migration files, define the structure and/or changes in a DB-neutral context, then run the migration to have the changes made to your database, be it MySQL, Oracle, MSSQL, etc. Does this functionality exist with Zend Framework at all? I haven't seen any mention of it in tutorials or other information, but since I'm new, I figure chances are I'm missing something. If this doesn't exist, is it planned? Thanks. -- Benjamin Eberlei http://www.beberlei.de
Re: [fw-general] Database Migrations - Yes, No, Maybe?
On 7 Nov 2008, at 21:47, Wil Sinclair wrote: If I'm not mistaken, Rob Allen originally proposed DB migrations some time back. Last I heard, he was planning to refactor that proposal to build on Zend_Tool. Rob, how off am I? That's the basic plan - Zend_Tool is the obvious vehicle to use now. (Once I fully understand it's internals!) I didn't expect Zend Framework in Action to take quite as long as it has done though, which is why it's languished as long as it has. I have high hopes to have the time to look at it properly early next year though! Regards, Rob...