migration = $factory; } public function getMigrations(Updater $updater) { $type = "VARCHAR(255) NOT NULL DEFAULT '" . Site::DEFAULT_SITE_TYPE . "'"; return array( $this->migration->db->addColumn('site', 'type', $type, 'group') ); } public function doUpdate(Updater $updater) { $updater->executeMigrations(__FILE__, $this->getMigrations($updater)); } }