Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #28 from VersoBit/dev
Browse files Browse the repository at this point in the history
v2.0.0p1
  • Loading branch information
RyleaStark authored Dec 6, 2020
2 parents a424a9a + aa61332 commit 9274cc7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -210,15 +210,15 @@ 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);
}

//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] : [];
Expand Down Expand Up @@ -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) {
Expand Down
Binary file added _releases/CMTV-Badges-2.0.0 Patch 1.zip
Binary file not shown.
8 changes: 4 additions & 4 deletions addon.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand All @@ -17,8 +17,8 @@
},
"require": {
"XF": [
2020070,
"XenForo 2.2"
2010070,
"XenForo 2.1"
],
"php": [
"7.0.0",
Expand Down

0 comments on commit 9274cc7

Please sign in to comment.