diff --git a/Setup.php b/Setup.php index 7538437..7b2a48c 100644 --- a/Setup.php +++ b/Setup.php @@ -198,10 +198,10 @@ public function uninstallStep3() // UPGRADE // - /* Upgrading to 2000070 (2.0.0|XF2.2) + /* Upgrading to 2000071 (2.0.0|PL1) Remove vbBadges from database and replace with CMTV_Badges (Standards Cleanup) */ - public function upgrade2000070Step1() + public function upgrade2000071Step1() { //Remove Phrases $phrases = $this->app->finder('XF:Phrase')->where(['title', 'LIKE', '%vbBadges%'])->fetch(); @@ -210,7 +210,7 @@ public function upgrade2000070Step1() } //Remove UserFields - $userFields = $this->app->finder('XF:UserField')->where(['field_id', 'LIKE', '%vbBadges%'])->fetch(); + $userFields = $this->app->finder('XF:UserField')->where(['field_id', 'LIKE', '%vBbadges%'])->fetch(); foreach ($userFields as $userField) { $userField->delete(false); } @@ -218,7 +218,7 @@ public function upgrade2000070Step1() //Install New UserField $this->installStep6(); } - public function upgrade2000070Step2(array $stepParams) + public function upgrade2000071Step2(array $stepParams) { $finder = \XF::finder('XF:UserFieldValue')->where('field_id', '=', 'vBbadgesEmailOptOut'); $stepData = isset($stepParams[2]) ? $stepParams[2] : []; @@ -247,7 +247,7 @@ public function upgrade2000070Step2(array $stepParams) $stepData ]; } - public function upgrade2000070Step3() + public function upgrade2000071Step3() { //Upgrade image_url, fa_icon, and class to new VARCHAR length's. $this->schemaManager()->alterTable(C::_table('badge'), function (Alter $table) { diff --git a/_releases/CMTV-Badges-2.0.0 Patch 1.zip b/_releases/CMTV-Badges-2.0.0 Patch 1.zip new file mode 100644 index 0000000..7b05161 Binary files /dev/null and b/_releases/CMTV-Badges-2.0.0 Patch 1.zip differ diff --git a/addon.json b/addon.json index 412775e..ecf0e46 100644 --- a/addon.json +++ b/addon.json @@ -2,8 +2,8 @@ "legacy_addon_id": "", "title": "[VersoBit] Badges", "description": "Create fancy-looking badges and award users for valuable and unique actions!", - "version_id": 2000070, - "version_string": "2.0.0", + "version_id": 2000071, + "version_string": "2.0.0 Patch 1", "dev": "VersoBit", "dev_url": "https://versobit.dev/", "faq_url": "", @@ -17,8 +17,8 @@ }, "require": { "XF": [ - 2020070, - "XenForo 2.2" + 2010070, + "XenForo 2.1" ], "php": [ "7.0.0",