Skip to content

Commit bde6c42

Browse files
committed
v1.0.0
1 parent 8e6e31f commit bde6c42

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

imcger/imgupload/migrations/install_settings.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ public function effectively_installed()
2020

2121
public static function depends_on()
2222
{
23-
return array('\imcger\imgupload\migrations\install_acp_module');
23+
return array(
24+
'\imcger\imgupload\migrations\install_acp_module',
25+
);
2426
}
2527

2628
public function update_data()
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/**
3+
*
4+
* Image upload use ImageMagick
5+
* An extension for the phpBB Forum Software package.
6+
*
7+
* @copyright (c) 2022, Thorsten Ahlers
8+
* @license GNU General Public License, version 2 (GPL-2.0)
9+
*
10+
*/
11+
12+
namespace imcger\imgupload\migrations;
13+
14+
class v100 extends \phpbb\db\migration\migration
15+
{
16+
public function effectively_installed()
17+
{
18+
return version_compare($this->config['imcger_imgupload_version'], '1.0.0', '>=');
19+
}
20+
21+
public static function depends_on()
22+
{
23+
return array(
24+
'\imcger\imgupload\migrations\install_settings',
25+
);
26+
}
27+
28+
public function update_data()
29+
{
30+
return array(
31+
array('config.update', array('imcger_imgupload_version', '1.0.0')),
32+
);
33+
}
34+
}

0 commit comments

Comments
 (0)