Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

fix(update): take into account the removal of older conf.php #7952

Merged
merged 2 commits into from
Oct 9, 2019

Conversation

adr-mo
Copy link
Contributor

@adr-mo adr-mo commented Oct 9, 2019

Pull Request Template

Description

Take into account the removal of older conf.php files that were located in the upgrade directories of te modules (EMS)

Fixes NONE

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software
  • Updating documentation (missing information, typo...)

Target serie

  • 2.8.x
  • 18.10.x
  • 19.04.x
  • 19.10.x (master)

How this pull request can be tested ?

Upgrade from the 19.04.x to the 19.10.0 with some EMS modules installed.
The WEB upgrade in Administration -> Extensions -> Manager should work

Checklist

Community contributors & Centreon team

  • I followed the coding style guidelines provided by Centreon
  • I have commented my code, especially new classes, functions or any legacy code modified. (docblock)
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have made corresponding changes to the documentation.
  • I have rebased my development branch on the base branch (master, maintenance).

Centreon team only

  • I have made sure that the unit tests related to the story are successful.
  • I have made sure that unit tests cover 80% of the code written for the story.
  • I have made sure that acceptance tests related to the story are successful (local and CI)

@adr-mo adr-mo requested a review from kduret October 9, 2019 20:06
$sth->bindValue(':is_removeable', $this->moduleConfiguration['is_removeable'], \PDO::PARAM_STR);
$sth->bindValue(':infos', $this->moduleConfiguration['infos'], \PDO::PARAM_STR);
$sth->bindValue(':author', $this->moduleConfiguration['author'], \PDO::PARAM_STR);
$sth->bindValue(':svc_tools', $this->moduleConfiguration['svc_tools'] ?? '0', \PDO::PARAM_STR);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couldn't you check this key/value when modulecnofiguration is set ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been set in the bindValue for now, but those two values will be removed in next versions because no longer used...

@adr-mo adr-mo merged commit e8fc4fe into master Oct 9, 2019
@adr-mo adr-mo deleted the MON-4239-upgrade-issue branch October 9, 2019 20:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants