Skip to content

Commit

Permalink
feat(install): prepare upgrade code
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jan 2, 2018
1 parent 7d7a10a commit 0c8c64f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions install/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public function upgrade(Migration $migration) {
require_once(__DIR__ . '/update_2.5_2.6.php');
plugin_formcreator_update_2_6($this->migration);

require_once(__DIR__ . '/update_2.6_2.6.1.php');
plugin_formcreator_update_2_6_1($this->migration);

default:
// Must be the last case
if ($this->endsWith(PLUGIN_FORMCREATOR_VERSION, "-dev")) {
Expand Down
2 changes: 1 addition & 1 deletion install/update_dev.php → install/update_2.6_2.6.1.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

function plugin_formcreator_update_dev() {
function plugin_formcreator_update_2_6_1() {
global $DB;

// decode html entities in name of questions
Expand Down
2 changes: 1 addition & 1 deletion setup.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
global $CFG_GLPI;
// Version of the plugin
define('PLUGIN_FORMCREATOR_VERSION', '2.6.0-dev');
define('PLUGIN_FORMCREATOR_VERSION', '2.6.1');
// Schema version of this version
define('PLUGIN_FORMCREATOR_SCHEMA_VERSION', '2.6');

Expand Down

0 comments on commit 0c8c64f

Please sign in to comment.