do_not_run_on_fresh_install( $version ); } /** * @throws Migration_Exception */ public function up() { try { $this->api_wrapper->reset_integration_encryption_keys( $this->get_integration() ); } catch ( TokenNotFoundException $e ) { } catch ( NotFoundException $e ) { } catch ( Account_Exception $e ) { } } /** * @return Integration * * @throws TokenNotFoundException * @throws NotFoundException * @throws Account_Exception */ private function get_integration() { return $this->api_wrapper->get_integration( $this->storage->get_oauth()->get_integration_id() ); } }