yii-dbmigrations A database migrations engine for the Yii framework

  1. Documentation
  2. Change Log

A database migrations engine for the Yii framework. It comes in the form of an extension which can be dropped into any existing Yii framework application.

It relies on the database abstraction layer of the Yii framework to talk to the database engine.

It’s largely inspired on the migrations functionality of the Ruby on Rails framework.

Resources

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/extensions
  • Follow the instructions in the README.textile file to install the extension.

Change Log

November 14, 2009 (version 1.1)
  • Fixed a bug where the migrations would fail with Yii version 1.0.10 and 1.1
  • Introduced a new syntax to create tables which is a lot more concise
  • Added the migrate create command
  • Beautified the output from the migrate command
  • Cleaned out the output of the list command
  • Added support for passing on parameters in the execute method of a migration
  • Added the redo command so that the last migration can be re-applied easily
  • When running migrations, a constant called YII_MIGRATING is now defined
  • The migration engine now show the directory in which the migrations are created
  • Replaced the deprecated split function with the explode function to make sure it works fine with PHP 5.3
June 17, 2009 (version 1.0a1)
  • The migrations are now performed inside a database transaction
  • Big code cleanup by adding all needed docstrings
  • When renaming a column, the data type is retained
  • You can now migrate up, down or to a specific version
  • You can now list the status of all migrations
June 15, 2009 (version 0.1a1)
  • Initial announcement.
5 0
3 followers
1 385 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Database
Tags:
Developed by: pclaerhout
Created on: Jun 15, 2009
Last updated: 8 years ago

Downloads

show all