Skip to content

Instantly share code, notes, and snippets.

@robmorgan
Created November 29, 2013 11:37
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 robmorgan/7704544 to your computer and use it in GitHub Desktop.
Save robmorgan/7704544 to your computer and use it in GitHub Desktop.
public function change()
{
$table = $this->table('continents', array('id' => false, 'primary_key' => array('name', 'country_id')));
$table->addColumn('name', 'string')
->addColumn('country_id', 'integer')
->addForeignKey('country_id', 'country', 'country_id', $options = array())
->save();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment