Skip to content

Commit

Permalink
Fix a bug when upgrading from < 2.0.0
Browse files Browse the repository at this point in the history
The update needed for 2.1.0 is not necessary
  • Loading branch information
nitriques committed Aug 31, 2018
1 parent 35aff45 commit f4ac348
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions extension.driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ public function update($previousVersion = false) {
$ret = FieldEntry_Relationship::update_2008();
}

// less than 2.1.0
if ($ret && version_compare($previousVersion, '2.1.0', '<')) {
// less than 2.1.0 and more recent than 2.0.0.beta6
if ($ret && version_compare($previousVersion, '2.1.0', '<') &&
version_compare($previousVersion, '2.0.0.beta6', '>=')) {
$ret = FieldReverse_Relationship::update_210();
}

Expand Down

0 comments on commit f4ac348

Please sign in to comment.