Skip to content

Commit

Permalink
Database Update v4.07.00
Browse files Browse the repository at this point in the history
  • Loading branch information
chetcuti committed Oct 1, 2017
1 parent ee85c12 commit adb3a10
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _includes/software.inc.php
Expand Up @@ -21,7 +21,7 @@
?>
<?php
define('SOFTWARE_TITLE', 'DomainMOD');
define('SOFTWARE_VERSION', '4.06.01');
define('SOFTWARE_VERSION', '4.07.00');
define('WEB_ROOT', $web_root);
define('DB_HOSTNAME', $dbhostname);
define('DB_NAME', $dbname);
Expand Down
23 changes: 23 additions & 0 deletions _includes/updates/4.06.00-current.inc.php
Expand Up @@ -44,4 +44,27 @@

}

// upgrade database from 4.06.01 to 4.07.00
if ($current_db_version === '4.06.01') {

$old_version = '4.06.01';
$new_version = '4.07.00';

try {

$pdo->beginTransaction();
$upgrade->database($new_version);
$pdo->commit();
$current_db_version = $new_version;

} catch (Exception $e) {

$pdo->rollback();
$upgrade->logFailedUpgrade($old_version, $new_version, $e);
throw $e;

}

}

//@formatter:on
2 changes: 1 addition & 1 deletion version.txt
@@ -1 +1 @@
4.06.01
4.07.00

0 comments on commit adb3a10

Please sign in to comment.