From d3124a070ac645e17d7ab6fb0e8cd236181309bb Mon Sep 17 00:00:00 2001 From: Jan Henckens Date: Wed, 10 Apr 2024 14:34:28 +0200 Subject: [PATCH 1/3] 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), From b99a6b658a0c12017477287537e73a1263bbbd0a Mon Sep 17 00:00:00 2001 From: Jan Henckens Date: Wed, 10 Apr 2024 14:37:03 +0200 Subject: [PATCH 2/3] Updated CI workflow --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c4357a..849d983 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: ci on: workflow_dispatch: push: - branches: [ develop ] + branches: [ develop-v5 ] pull_request: permissions: contents: read @@ -14,7 +14,7 @@ jobs: name: ci uses: statikbe/.github/.github/workflows/ci.yml@main with: - craft_version: '4' + craft_version: '5' jobs: '["ecs", "phpstan"]' secrets: token: ${{ secrets.GITHUB_TOKEN }} From de48b0fcac0530fc398c888e7e96820b0fbf8d16 Mon Sep 17 00:00:00 2001 From: Jan Henckens Date: Wed, 10 Apr 2024 14:41:58 +0200 Subject: [PATCH 3/3] Add php version to ci? --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 849d983..91661f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,9 @@ name: ci on: workflow_dispatch: push: - branches: [ develop-v5 ] + branches: + - develop + - develop-v5 pull_request: permissions: contents: read @@ -15,6 +17,7 @@ jobs: uses: statikbe/.github/.github/workflows/ci.yml@main with: craft_version: '5' + php_version: '8.2' jobs: '["ecs", "phpstan"]' secrets: token: ${{ secrets.GITHUB_TOKEN }}