protected function run1($stage)
{
$this->console->notice('Adding field to table farms');
$this->db->Execute("ALTER TABLE farms ADD `team_id` int(11) NULL DEFAULT NULL");
$this->console->notice('Adding foreign key');
$this->db->Execute("\n ALTER TABLE farms ADD CONSTRAINT `farms_account_teams_id`\n FOREIGN KEY (`team_id`) REFERENCES `account_teams` (`id`)\n ON DELETE SET NULL\n ON UPDATE NO ACTION\n ");
}