Skip to content

Commit

Permalink
Adds migration to delete the old cacheflag_flagged database table, pr…
Browse files Browse the repository at this point in the history
…eventing a Craft 4 upgrade migration error
  • Loading branch information
mmikkel committed Jun 20, 2022
1 parent e24ae85 commit fb230b6
Show file tree
Hide file tree
Showing 5 changed files with 2,398 additions and 2,355 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Cache Flag Changelog

## 1.3.1 - 2022-06-20

> {warning} Prior to Craft 3.5.0, Cache Flag used a database table called `cacheflag_flagged` to store references to template caches in the `templatecaches` database table. **If present, this table will cause a migration error when upgrading to Craft 4.** To avoid the issue, make sure to upgrade to Cache Flag 1.3.1 or later **before** upgrading the site to Craft 4. _Note that this only applies to sites that were initially running Craft 3.4.x or earlier (and had Cache Flag v. 1.0.4 or earlier installed at that time)._
### Fixed
- CacheFlag will now delete the old `cacheflag_flagged` database table upon installation or update, preventing a migration error when upgrading sites to Craft 4.

## 1.3.0 - 2022-04-18
### Added
- Adds Craft 4.0 compatibility
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mmikkel/cache-flag",
"description": "Cold template caches that can be flagged and automatically invalidated.",
"type": "craft-plugin",
"version": "1.3.0",
"version": "1.3.1",
"keywords": [
"craft",
"cms",
Expand All @@ -22,7 +22,7 @@
}
],
"require": {
"craftcms/cms": "^3.7.0|^4.0.0-beta.4",
"craftcms/cms": "^3.7.0|^4.0.0",
"php": "^7.2.5|^8.0"
},
"require-dev": {
Expand All @@ -44,7 +44,7 @@
"extra": {
"name": "Cache Flag",
"handle": "cache-flag",
"schemaVersion": "1.0.1",
"schemaVersion": "1.0.2",
"hasCpSettings": false,
"hasCpSection": true,
"changelogUrl": "https://raw.githubusercontent.com/mmikkel/CacheFlag-Craft3/master/CHANGELOG.md",
Expand Down
Loading

0 comments on commit fb230b6

Please sign in to comment.