Skip to content

Instantly share code, notes, and snippets.

@havvg
Created February 12, 2011 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save havvg/823952 to your computer and use it in GitHub Desktop.
Save havvg/823952 to your computer and use it in GitHub Desktop.
an example migration file for sfCloudControlPlugin using sfPropelMigrationsLightPlugin
<?php
/**
* Migrations between versions 003 and 004.
*/
class Migration004 extends sfMigration
{
/**
* Migrate up to version 004.
*/
public function up()
{
$sfCloudControlPluginMigration = new sfCloudControlMigration001($this->getMigrator(), $this->getMigrationNumber());
$sfCloudControlPluginMigration->up();
}
/**
* Migrate down to version 003.
*/
public function down()
{
$sfCloudControlPluginMigration = new sfCloudControlMigration001($this->getMigrator(), $this->getMigrationNumber());
$sfCloudControlPluginMigration->down();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment