Rob Allen posts; 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. For example, if application.ini contains resources.db.table_prefix = “myapp”, then […]
Bill Karwin gives some insight into some work arounds when creating functions, triggers and procedures using Zend Framework; MySQL does support preparing some DDL statements, even in older versions. See http://dev.mysql.com/doc/refman/5.1/en/sql-syntax-prepared-statements.html for lists of what statements can be prepared. However, some DDL statements are still not supported as prepared statements, for example CREATE FUNCTION, CREATE […]
Having covered the preparation and character set options of performing a latin1 to utf8 MySQL migration, just how do you perform the migration correctly. Complete story again at Migrating MySQL latin1 to utf8 – The process .
Mike Hillyer wrote a very good article on Managing Hierarchical data in MySQL, defenitely worth a read; Most users at one time or another have dealt with hierarchical data in a SQL database and no doubt learned that the management of hierarchical data is not what a relational database is intended for. The tables of a […]
Continuing on from preparation in our MySQL latin1 to utf8 migration let us first understand where MySQL uses character sets. MySQL defines the character set at 4 different levels for the structure of data. via Migrating MySQL latin1 to utf8 – Character Set Options
Before undertaking such migration the first step is a lesson in understanding more about how latin1 and utf8 work and interact in MySQL. latin1 in a common and historical character set used in MySQL. utf8 first available in MySQL Version 4.1 is an encoding supporting multiple bytes and is the system default in MySQL 5.0 via […]
Jon Lebensold publishes another screen cast on the Doctrine topic; This short video is going to be the last in my 2009–2010 series on Doctrine 1.2. I’m wrapping it up with a little example of adding timestamps, logging and using Doctrine’s event listener architecture. Grab a copy of the project or browse the repository. view screencast; […]
Jayson Minard wrote a very good article on upgrading a production site and what can go wrong and what we can learn from it. Yesterday, I performed an upgrade to a third-party package used with Zend Developer Zone. It has an automated schema update system which silently performs actions on the database that had a large […]
Matthew Turland has written a very nice article on Unit Testing using Zend_Test, Zend_Test_PHPUnit_DatabaseTestCase, Zend_Test_PHPUnit_ControllerTestCase where he uses a few interesting solutions. Definitely worth a read. “I worked on a project recently where we used Zend Framework. As part of that project, I was tasked with writing unit tests. So, I went to the “tests” directory […]
Manually extracting relevant information from repeated incantations of SHOW ENGINE INNODB STATUS while trying to figure out what InnoDB is doing is not only error prone, it’s just plain hard to do. And since MySQL doesn’t expose the data you really want in an INFORMATION_SCHEMA table (yet?), the option is use an external program to help: innotop.