From b35596e2d80980bbf678d3dc6641baf437fff755 Mon Sep 17 00:00:00 2001 From: croxton Date: Wed, 1 Nov 2017 18:28:14 +0000 Subject: [PATCH] EE4 compatibility --- README.md | 4 ++-- system/user/addons/stash/config.php | 2 +- system/user/addons/stash/upd.stash.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e63f28c..92ac3ed 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ ## Stash -![Release](https://img.shields.io/badge/release-3.0.5-brightgreen.svg) +![Release](https://img.shields.io/badge/release-3.0.6-brightgreen.svg) -Stash for ExpressionEngine 3. +Stash for ExpressionEngine 3 and 4. * Author: [Mark Croxton](http://hallmark-design.co.uk/) * Requires: ExpressionEngine 3.0+ diff --git a/system/user/addons/stash/config.php b/system/user/addons/stash/config.php index e868d67..2cebd9b 100755 --- a/system/user/addons/stash/config.php +++ b/system/user/addons/stash/config.php @@ -2,7 +2,7 @@ if (! defined('STASH_VER')) { define('STASH_NAME', 'Stash'); - define('STASH_VER', '3.0.5'); + define('STASH_VER', '3.0.6'); define('STASH_AUTHOR', 'Mark Croxton, Hallmark Design'); define('STASH_AUTHOR_URL', 'http://hallmark-design.co.uk'); define('STASH_DOCS', 'http://github.com/croxton/Stash/'); diff --git a/system/user/addons/stash/upd.stash.php b/system/user/addons/stash/upd.stash.php index 31a7e6c..ad5de02 100755 --- a/system/user/addons/stash/upd.stash.php +++ b/system/user/addons/stash/upd.stash.php @@ -61,7 +61,7 @@ public function install() `expire` int(10) unsigned NOT NULL default '0', `parameters` MEDIUMTEXT, PRIMARY KEY (`id`), - UNIQUE KEY `cache_key` (`key_name`,`bundle_id`,`site_id`,`session_id`), + UNIQUE KEY `cache_key` (`key_name`(191),`bundle_id`,`site_id`,`session_id`), KEY `bundle_id` (`bundle_id`), KEY `site_id` (`site_id`), KEY `expire` (`expire`)