News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob Allen's Blog:
Akrabat_Db_Schema_Manager table prefix support
June 21, 2010 @ 09:14:52

Rob Allen has a new post to his blog today talking about an update he's made to the Akrabat_Db_Schema_Manager component for the Zend Framework to allow it to support table prefixes.

I've updated Akrabat_Db_Schema_Manager so that it now supports table prefixes. It uses the application.ini key of resources.db.table_prefix as I couldn't think of a better one :) and then uses that for the schema_version table's name and also makes it available in your change objects.

He illustrates with a sample setting for your application.ini file and some code to handle the creation and deletion of tables using this prefix setting.

Note that you are responsible for using the prefix property as the change classes cannot enforce what you do within the up() and down() methods. It also follows that you'll have to ensure that your models also use the correct prefix.
0 comments voice your opinion now!
akrabatdbschemamanager zendframework component table prefix


blog comments powered by Disqus

Similar Posts

Alexey Zakhlestin's Blog: Syck for PHP goes Beta (in PECL)

Symfony News: Translation Component Now Avabilable (Symfony2)

Padraic Brady's Blog: Optimise Your Zend_Feed Aggregators With HTTP Conditional GET Support

Stefan Mischook's Blog: PHP Video: the Zend Framework and Web 2.0

VG Tech: Swagger Docs in ZF2 with Examples - Part 1: Setup and Annotations


Community Events











Don't see your event here?
Let us know!


unittest hack framework security symfony2 performance facebook overview introduction language composer support opinion component application install podcast release package hhvm

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework