migration = $factory; } public function getMigrations(Updater $updater) { return array( $this->migration->db->sql('UPDATE `' . Common::prefixTable('pdf') . '` SET format = "pdf"', '42S22'), $this->migration->db->addColumn('pdf', 'format', 'VARCHAR(10)') ); } public function doUpdate(Updater $updater) { try { $updater->executeMigrations(__FILE__, $this->getMigrations($updater)); } catch (\Exception $e) { } } }