<?php

namespace Application\Migrations;

use SimplyTestable\BaseMigrationsBundle\Migration\BaseMigration,
    Doctrine\DBAL\Schema\Schema;

/**
 * Auto-generated Migration: Please modify to your need!
 */
class Version20130425133722_create_AccountPlanConstraint extends BaseMigration
{    
    public function up(Schema $schema)
    {
        $this->statements['mysql'] = array(
            "CREATE TABLE AccountPlanConstraint (
                id INT AUTO_INCREMENT NOT NULL,
                name VARCHAR(255) NOT NULL,
                `limit` INT DEFAULT NULL,
                isAvailable TINYINT(1) NOT NULL,
                UNIQUE INDEX UNIQ_E18FF0B75E237E06 (name),
                PRIMARY KEY(id))
                DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB"
        );
        
        $this->statements['sqlite'] = array(
            "CREATE TABLE AccountPlanConstraint (
                id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
                name VARCHAR(255) NOT NULL,
                `limit` INT DEFAULT NULL,
                isAvailable TINYINT(1) NOT NULL)",
            "CREATE UNIQUE INDEX UNIQ_E18FF0B75E237E06 ON AccountPlanConstraint (name)"
        ); 
        
        parent::up($schema);
    }
   

    public function down(Schema $schema)
    {           
        $this->addCommonStatement("DROP TABLE AccountPlanConstraint");      
        
        parent::down($schema);
    }    
}

Add migration to create AccountPlanConstraint
Add migration to create AccountPlanConstraint
