From 1233fa1370e0adb6ec5a60324e0eb33bf270694b Mon Sep 17 00:00:00 2001 From: Benjamin Ammann <26964239+ammannbe@users.noreply.github.com> Date: Wed, 14 Sep 2022 15:52:04 +0200 Subject: [PATCH] fixed field "posterName" in new installations --- CHANGELOG.md | 4 ++++ composer.json | 2 +- src/HOMMSocialFeed.php | 2 +- src/migrations/Install.php | 1 + src/migrations/m220912_113843_add_poster_name.php | 2 +- 5 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c53aa2d..a80518d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 1.2.5 - 2022-09-14 + +- Fixed field "posterName" in new installations + ## 1.2.4 - 2022-09-12 - Added new field "posterName" diff --git a/composer.json b/composer.json index 24c658c..c6c87b7 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "homm/hommsocialfeed", "description": "Craft CMS Social Feed Adapter for juicer.io", "type": "craft-plugin", - "version": "1.2.4", + "version": "1.2.5", "keywords": [ "craft", "cms", diff --git a/src/HOMMSocialFeed.php b/src/HOMMSocialFeed.php index 3d59334..a1473e2 100644 --- a/src/HOMMSocialFeed.php +++ b/src/HOMMSocialFeed.php @@ -49,7 +49,7 @@ class HOMMSocialFeed extends Plugin /** * @var string */ - public $schemaVersion = '1.2.4'; + public $schemaVersion = '1.2.5'; /** * @var bool diff --git a/src/migrations/Install.php b/src/migrations/Install.php index 098ff2d..cf47cae 100644 --- a/src/migrations/Install.php +++ b/src/migrations/Install.php @@ -36,6 +36,7 @@ public function safeUp() 'likeCount' => $this->integer()->unsigned()->notNull()->defaultValue(0), 'image' => $this->string(1024), 'additionalPhotos' => $this->text(), + 'posterName' => $this->string(), 'video' => $this->string(1024), 'isMediaHidden' => $this->boolean()->notNull()->defaultValue(false), 'color' => $this->string(20), diff --git a/src/migrations/m220912_113843_add_poster_name.php b/src/migrations/m220912_113843_add_poster_name.php index f0b327f..fd68000 100644 --- a/src/migrations/m220912_113843_add_poster_name.php +++ b/src/migrations/m220912_113843_add_poster_name.php @@ -15,7 +15,7 @@ class m220912_113843_add_poster_name extends Migration */ public function safeUp() { - $this->addColumn('{{%homm_socialfeeds}}', 'posterName', $this->text()); + $this->addColumn('{{%homm_socialfeeds}}', 'posterName', $this->string()); } /**