Skip to content

Missing migration for account history #112

@Phorms

Description

@Phorms

Hi,

I noticed that with the update to version 3 of the plugin and GLPI to version 11, the old history of accounts is not displayed anymore.
As far as I can see, it is due to a missing migration in the update-3.1.0.sql file.

The log is still present in the database (glpi_logs) but with itemtype set to "PluginAccountsAccount" and the new version is searching for "GlpiPlugin\Accounts\Account".

Since I am not aware if it is possible to just add this one line to the update-3.1.0.sql and rerun the update or if it is better to create a new update-3.1.2.sql (or whatever) to add this migration step. I can't open a pull request to fix this and kindly ask that someone with experience in developing GLPI plugins resolve this issue.

Version of the plugin: 3.1.1
Version of GLPI: 11.0.1
Steps to reproduce (which actions have you made): Using GLPI Version 10 with a version of the plugin before release 3.1 and upgrading GLPI and the plugin.
Expected result: history gets displayed completely after the update.
Actual result: displayed history is empty (old entries not displayed, new ones are displayed correctly).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions