From d3124a070ac645e17d7ab6fb0e8cd236181309bb Mon Sep 17 00:00:00 2001 From: Jan Henckens Date: Wed, 10 Apr 2024 14:34:28 +0200 Subject: [PATCH] Use boolean instead of 0 in install migration --- CHANGELOG.md | 4 ++++ composer.json | 2 +- src/migrations/Install.php | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30d4809..57b0916 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Release Notes for carbon-tracker +## 5.0.1 - 2024-04-10 +### Fixed +- Fixed an installation error when using PostgreSQL ([#8](https://github.com/statikbe/craft-carbon-tracker/issues/8)) + ## 5.0.0 - 2024-03-12 ### Added - Craft 5 support 🚀 diff --git a/composer.json b/composer.json index 32c5c1c..3b69d15 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "statikbe/craft-carbon-tracker", "description": "Carbon tracker aims to raise awareness of the carbon emissions created by webpages, by displaying these insights along side the content in Craft's control panel.", "type": "craft-plugin", - "version": "5.0.0", + "version": "5.0.1", "license": "mit", "support": { "email": "support@statik.be", diff --git a/src/migrations/Install.php b/src/migrations/Install.php index 65d55d3..8f20a03 100644 --- a/src/migrations/Install.php +++ b/src/migrations/Install.php @@ -17,7 +17,7 @@ public function safeUp(): bool 'entryId' => $this->integer()->notNull(), 'siteId' => $this->integer()->notNull(), 'url' => $this->string()->notNull(), - 'green' => $this->boolean()->defaultValue(0), + 'green' => $this->boolean()->defaultValue(false), 'bytes' => $this->integer(), 'cleanerThan' => $this->float()->defaultValue(0.0), 'rating' => $this->string(2),