2012-09-04 15:21:04 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Application\Migrations;
|
|
|
|
|
|
|
|
use Doctrine\DBAL\Migrations\AbstractMigration,
|
|
|
|
Doctrine\DBAL\Schema\Schema;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Auto-generated Migration: Please modify to your need!
|
|
|
|
*/
|
|
|
|
class Version20120904170638 extends AbstractMigration
|
|
|
|
{
|
|
|
|
public function up(Schema $schema)
|
|
|
|
{
|
|
|
|
// this up() migration is autogenerated, please modify it to your needs
|
|
|
|
$this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql");
|
2012-09-05 10:59:21 +00:00
|
|
|
|
2012-09-04 15:21:04 +00:00
|
|
|
$this->addSql("ALTER TABLE users ADD password VARCHAR(50) NOT NULL");
|
|
|
|
}
|
|
|
|
|
|
|
|
public function down(Schema $schema)
|
|
|
|
{
|
|
|
|
// this down() migration is autogenerated, please modify it to your needs
|
|
|
|
$this->abortIf($this->connection->getDatabasePlatform()->getName() != "mysql");
|
2012-09-05 10:59:21 +00:00
|
|
|
|
2012-09-04 15:21:04 +00:00
|
|
|
$this->addSql("ALTER TABLE users DROP password");
|
|
|
|
}
|
|
|
|
}
|