Skip to content

[Bugfix] Add upgrade script for short link permalink#6905

Open
mind84 wants to merge 1 commit into
3liz:masterfrom
mind84:permalink_update_installer
Open

[Bugfix] Add upgrade script for short link permalink#6905
mind84 wants to merge 1 commit into
3liz:masterfrom
mind84:permalink_update_installer

Conversation

@mind84
Copy link
Copy Markdown
Collaborator

@mind84 mind84 commented Jun 2, 2026

This PR completes #6765

@laurentj there are a couple of things that aren't completely clear to me on Jelix upgrade module logic:

  • variable $targetVersions
    As far as I understand, if the current upgrading version matches one of the version listed in this variable, then the upgrade script may be executed, depending on other subsequent checks. On the other hand, if the version doesn't match, the script never runs.

  • variable $date
    What is the purpose of this field?

In general, is there a way to force a module to update?
I updated Lizmap to version 3.10.0-rc.1, but I forgot to add the upgrade_permalink script. I tried adding it later and then execute installer.php, but it seems there's no way to run the script once the main module has been updated.

Thanks for the support!

Funded by Faunalia

@github-actions github-actions Bot added this to the 3.11.0 milestone Jun 2, 2026
@rldhont rldhont requested a review from laurentj June 3, 2026 07:24
@mind84
Copy link
Copy Markdown
Collaborator Author

mind84 commented Jun 3, 2026

@rldhont

I will rebase this PR after #6908 is merged.
Same for #6907 and #6906

Thanks

@mind84 mind84 force-pushed the permalink_update_installer branch from 1a83ca4 to 36ac99e Compare June 3, 2026 14:20
Comment on lines +6 to +7
'3.10.0-rc.1',
'3.10.0',
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Suggested change
'3.10.0-rc.1',
'3.10.0',
'3.10.0-pre',
'3.10.0-rc.2',
'3.10.0',

-rc.1 is already passed.
The actual is -pre
The futur is -rc.2 and .0

@laurentj are these target versions rights ?

Comment on lines +13 to +18
// Adding permalink table
if ($this->firstDbExec()) {
// Add permalink table
$this->useDbProfile('jauth');
$this->execSQLScript('sql/lizpermalink');
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think, you can merge it with admin/install/upgrade_permalink.php to keep only one upgrade_permalink.php file.

@laurentj What do you think about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants