Skip to content

Instantly share code, notes, and snippets.

@arturo-c
Created September 10, 2013 21:42
Show Gist options
  • Save arturo-c/6516146 to your computer and use it in GitHub Desktop.
Save arturo-c/6516146 to your computer and use it in GitHub Desktop.
<?php
namespace RugbyStatsMigrations;
use Doctrine\DBAL\Migrations\AbstractMigration,
Doctrine\DBAL\Schema\Schema;
/**
* Auto-generated Migration: Please modify to your need!
*/
class Version20130910163614 extends AbstractMigration
{
public function up(Schema $schema)
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE games ADD field1 text DEFAULT NULL;');
}
public function down(Schema $schema)
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE games DROP field1;');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment