Skip to content

Commit

Permalink
Fixed a hardcoded table name in the referrerUrl migration
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Welch <andrew@nystudio107.com>
  • Loading branch information
khalwat committed Aug 31, 2017
1 parent e56fece commit 22f4c1d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions 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`)
Expand Down
2 changes: 1 addition & 1 deletion RetourPlugin.php
Expand Up @@ -180,7 +180,7 @@ public function getReleaseFeedUrl()
*/
public function getVersion()
{
return '1.0.20';
return '1.0.21';
}

/**
Expand Down
Expand Up @@ -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);

Expand Down
8 changes: 8 additions & 0 deletions 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",
Expand Down

0 comments on commit 22f4c1d

Please sign in to comment.