diff --git a/CHANGELOG.md b/CHANGELOG.md index fd8f123..58b457b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.4.1] - 04-25-2023 + +### Added + +- Added migration query update to the Install migration for rosas->lsst namespace + ## [0.4] - 04-12-2023 ### Changed diff --git a/composer.json b/composer.json index 4832dd0..8168715 100644 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "craft-plugin", "keywords": ["dam", "digital", "asset", "manager"], "license": "MIT", - "version": "v0.4", + "version": "v0.4.1", "authors": [ { "name": "Eric Rosas", diff --git a/src/DamPlugin.php b/src/DamPlugin.php index 8c17dcd..ec79886 100644 --- a/src/DamPlugin.php +++ b/src/DamPlugin.php @@ -45,7 +45,7 @@ class DamPlugin extends Plugin public static Plugin $plugin; public bool $hasCpSettings = true; - public string $schemaVersion = "2.0.0"; + public string $schemaVersion = "2.0.1"; /** * @param $id diff --git a/src/migrations/Install.php b/src/migrations/Install.php index 432139f..e367379 100644 --- a/src/migrations/Install.php +++ b/src/migrations/Install.php @@ -49,6 +49,15 @@ public function safeUp(): bool Craft::$app->db->schema->refresh(); } + // Perform migration as if this is a new plugin due to namespace changes + echo "Performing install-migration for Canto Integration Plugin"; + $this->update('{{%fields}}', [ + "type" => 'lsst\dam\fields\DAMAsset' + ],[ + "type" => 'rosas\dam\fields\DAMAsset' + ] + ); + return true; }