Skip to content

Instantly share code, notes, and snippets.

@77web
Created December 19, 2011 00:45
Show Gist options
  • Save 77web/1494966 to your computer and use it in GitHub Desktop.
Save 77web/1494966 to your computer and use it in GitHub Desktop.
SymfonyAdventCalendarJP2011用migrationクラスのサンプル(sf1.4+doctrine1.x)-2
<?php
/**
* This class has been auto-generated by the Doctrine ORM Framework
*/
class Version2 extends Doctrine_Migration_Base
{
public function up()
{
$this->addColumn('product', 'memo', 'string', '', array(
));
}
public function down()
{
$this->removeColumn('product', 'memo');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment