Skip to content

Commit 1a83ca4

Browse files
committed
add upgrade script for short link permalink
1 parent 5d016db commit 1a83ca4

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

lizmap/modules/admin/install/upgrade_permalink.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
class adminModuleUpgrader_permalink extends jInstallerModule
44
{
55
public $targetVersions = array(
6-
'3.10',
6+
'3.10.0-rc.1',
7+
'3.10.0',
78
);
8-
public $date = '2026-05-13'; // original:'2023-01-06'
9+
public $date = '2026-05-13';
910

1011
public function install()
1112
{
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
class lizmapModuleUpgrader_permalink extends jInstallerModule
4+
{
5+
public $targetVersions = array(
6+
'3.10.0-rc.1',
7+
'3.10.0',
8+
);
9+
public $date = '2026-05-26';
10+
11+
public function install()
12+
{
13+
// Adding permalink table
14+
if ($this->firstDbExec()) {
15+
// Add permalink table
16+
$this->useDbProfile('jauth');
17+
$this->execSQLScript('sql/lizpermalink');
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)