diff --git a/CHANGELOG.md b/CHANGELOG.md index 1788e1c..07bb7f5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Retour Changelog +## 1.0.21 - 2017.08.31 +### Changed +* Fixed a hardcoded table name in the `referrerUrl` migration + ## 1.0.20 - 2017.08.30 ### Added * Retour will automatically trim the `retour_stats` table to the last 10,000 redirects, sorted by date (configurable via `statsStoredLimit` in `config.php`) diff --git a/RetourPlugin.php b/RetourPlugin.php index dd1fd26..07d5c90 100644 --- a/RetourPlugin.php +++ b/RetourPlugin.php @@ -180,7 +180,7 @@ public function getReleaseFeedUrl() */ public function getVersion() { - return '1.0.20'; + return '1.0.21'; } /** diff --git a/migrations/m170710_000000_retour_increaseReferrerUrlColumnMaxLength.php b/migrations/m170710_000000_retour_increaseReferrerUrlColumnMaxLength.php index 4505c8d..6921216 100644 --- a/migrations/m170710_000000_retour_increaseReferrerUrlColumnMaxLength.php +++ b/migrations/m170710_000000_retour_increaseReferrerUrlColumnMaxLength.php @@ -14,7 +14,7 @@ class m170710_000000_retour_increaseReferrerUrlColumnMaxLength extends BaseMigra public function safeUp() { - $this->execute('ALTER TABLE craft_retour_stats MODIFY COLUMN referrerUrl VARCHAR(2000) DEFAULT "";'); + $this->alterColumn('retour_stats', 'referrerUrl', array(ColumnType::Varchar, 'maxLength' => 2000)); RetourPlugin::log('The max length of column referrerUrl has been increased to 2000 ', LogLevel::Info, true); diff --git a/releases.json b/releases.json index 0dc4106..2d0e474 100644 --- a/releases.json +++ b/releases.json @@ -1,4 +1,12 @@ [ + { + "version": "1.0.21", + "downloadUrl": "https://github.com/nystudio107/retour/archive/master.zip", + "date": "2017-08-31T12:00:00-05:00", + "notes": [ + "[Fixed] Fixed a hardcoded table name in the `referrerUrl` migration" + ] + }, { "version": "1.0.20", "downloadUrl": "https://github.com/nystudio107/retour/archive/master.zip",