Skip to content

Commit

Permalink
Fix install migration for PostgreSQL (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens authored Apr 10, 2024
2 parents c2a8a86 + de48b0f commit 3478942
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: ci
on:
workflow_dispatch:
push:
branches: [ develop ]
branches:
- develop
- develop-v5
pull_request:
permissions:
contents: read
Expand All @@ -14,7 +16,8 @@ jobs:
name: ci
uses: statikbe/.github/.github/workflows/ci.yml@main
with:
craft_version: '4'
craft_version: '5'
php_version: '8.2'
jobs: '["ecs", "phpstan"]'
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 🚀
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion src/migrations/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 3478942

Please sign in to comment.