Skip to content

Commit

Permalink
Truncate Stash table before module update, as changing indexes can th…
Browse files Browse the repository at this point in the history
…row an error with existing data
  • Loading branch information
croxton committed Jul 16, 2015
1 parent 0236e3d commit aa8d396
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions system/expressionengine/third_party/stash/upd.stash.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ public function update($current = '')

$sql = array();

// always flush the Stash table first
$sql[] = "TRUNCATE TABLE `{$this->EE->db->dbprefix}stash`";

// Update to 2.3.7
if (version_compare($current, '2.3.7', '<'))
{
Expand Down

0 comments on commit aa8d396

Please sign in to comment.